Java org.springframework.core.io.support LocalizedResourceHelper fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.core.io.support LocalizedResourceHelper fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.core.io.support LocalizedResourceHelper.

The text is from its open source code.

Constructor

LocalizedResourceHelper(ResourceLoader resourceLoader)
Create a new LocalizedResourceHelper with the given ResourceLoader.

Method

ResourcefindLocalizedResource(String name, String extension, @Nullable Locale locale)
Find the most specific localized resource for the given name, extension and locale:

The file will be searched with locations in the following order, similar to java.util.ResourceBundle 's search order:

  • [name]_[language]_[country]_[variant][extension]
  • [name]_[language]_[country][extension]
  • [name]_[language][extension]
  • [name][extension]

If none of the specific files can be found, a resource descriptor for the default location will be returned.