Module org.apache.wicket.core
Package org.apache.wicket.resource
Class UtfPropertiesFilePropertiesLoader
java.lang.Object
org.apache.wicket.resource.UtfPropertiesFilePropertiesLoader
- All Implemented Interfaces:
IPropertiesLoader
Load properties from properties file via a Reader, which allows to provide the charset and thus
the encoding can be different than ISO 8859-1.
- Author:
- Juergen Donnerstag
-
Constructor Summary
ConstructorDescriptionUtfPropertiesFilePropertiesLoader
(String fileExtension, String encoding) Construct. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Load the properties into a java.util.Properties objectloadWicketProperties
(InputStream inputStream) Load the properties into a ValueMap.
-
Constructor Details
-
UtfPropertiesFilePropertiesLoader
Construct.- Parameters:
fileExtension
-encoding
-
-
-
Method Details
-
getFileExtension
- Specified by:
getFileExtension
in interfaceIPropertiesLoader
- Returns:
- The file extension this loader should be applied to
- See Also:
-
loadJavaProperties
Description copied from interface:IPropertiesLoader
Load the properties into a java.util.Properties object- Specified by:
loadJavaProperties
in interfaceIPropertiesLoader
- Returns:
- Properties. Null if not applicable or not found or ...
- Throws:
IOException
- See Also:
-
loadWicketProperties
Description copied from interface:IPropertiesLoader
Load the properties into a ValueMap.- Specified by:
loadWicketProperties
in interfaceIPropertiesLoader
- Returns:
- Properties. Null if not applicable or not found or ...
- See Also:
-