|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.resource.UtfPropertiesFilePropertiesLoader
public class UtfPropertiesFilePropertiesLoader
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. The implementation depends on the Java 6 Properties implementation and is disable if the reflection cannot find the method load(Reader).
Constructor Summary | |
---|---|
UtfPropertiesFilePropertiesLoader(String fileExtension,
String encoding)
Construct. |
Method Summary | |
---|---|
String |
getFileExtension()
|
Properties |
loadJavaProperties(InputStream in)
Load the properties into a java.util.Properties object |
ValueMap |
loadWicketProperties(InputStream inputStream)
Load the properties into a ValueMap. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UtfPropertiesFilePropertiesLoader(String fileExtension, String encoding)
fileExtension
- encoding
- Method Detail |
---|
public final String getFileExtension()
getFileExtension
in interface IPropertiesLoader
IPropertiesLoader.getFileExtension()
public Properties loadJavaProperties(InputStream in) throws IOException
IPropertiesLoader
loadJavaProperties
in interface IPropertiesLoader
IOException
IPropertiesLoader.loadJavaProperties(java.io.InputStream)
public ValueMap loadWicketProperties(InputStream inputStream)
IPropertiesLoader
loadWicketProperties
in interface IPropertiesLoader
IPropertiesLoader.loadWicketProperties(java.io.InputStream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |