|
||||||||||
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(java.lang.String fileExtension,
java.lang.String encoding)
Construct. |
Method Summary | |
---|---|
java.lang.String |
getFileExtension()
|
java.util.Properties |
loadJavaProperties(java.io.InputStream in)
Load the properties into a java.util.Properties object |
ValueMap |
loadWicketProperties(java.io.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(java.lang.String fileExtension, java.lang.String encoding)
fileExtension
- encoding
- Method Detail |
---|
public final java.lang.String getFileExtension()
getFileExtension
in interface IPropertiesLoader
IPropertiesLoader.getFileExtension()
public java.util.Properties loadJavaProperties(java.io.InputStream in) throws java.io.IOException
IPropertiesLoader
loadJavaProperties
in interface IPropertiesLoader
java.io.IOException
IPropertiesLoader.loadJavaProperties(java.io.InputStream)
public ValueMap loadWicketProperties(java.io.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 |