Class PropertiesLoader
- java.lang.Object
-
- ch.sahits.game.openpatrician.app.display.PropertiesLoader
-
public class PropertiesLoader extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PropertiesLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
escapifyStr(java.lang.String str)
private char
hexDigit(char ch, int offset)
java.util.Properties
loadProperties(java.io.InputStream is, java.lang.String encoding)
Load properties from an input stream using the specified encoding.
-
-
-
Method Detail
-
loadProperties
public java.util.Properties loadProperties(java.io.InputStream is, java.lang.String encoding) throws java.io.IOException
Load properties from an input stream using the specified encoding.- Parameters:
is
- input streamencoding
- encoding of the data in the stream- Returns:
- Property
- Throws:
java.io.IOException
- error while accessing the input stream
-
hexDigit
private char hexDigit(char ch, int offset)
-
escapifyStr
private java.lang.String escapifyStr(java.lang.String str)
-
-