public class POHelper extends Object implements PropertyConverter
| Constructor and Description |
|---|
POHelper() |
| Modifier and Type | Method and Description |
|---|---|
PropertyFile |
load(InputStream in,
String encoding)
loads the given input stream and transform it into a
PropertyFile
The implementation is expected to close the stream upon completion |
static void |
main(String[] args) |
Property |
readProperty(BufferedReader reader) |
int |
write(OutputStream out,
PropertyFile file,
String encoding)
serializes the given
PropertyFile into the output steam
The implementation is expected to close the stream upon completion
The implementation is free to optimize the output by removing empty translations. |
public Property readProperty(BufferedReader reader) throws IOException
IOExceptionpublic static void main(String[] args) throws IOException
args - IOExceptionpublic PropertyFile load(InputStream in, String encoding) throws IOException
PropertyConverterPropertyFile
The implementation is expected to close the stream upon completion
load in interface PropertyConverterencoding - hint about which encoding to useIOExceptionpublic int write(OutputStream out, PropertyFile file, String encoding) throws IOException
PropertyConverterPropertyFile into the output steam
The implementation is expected to close the stream upon completion
The implementation is free to optimize the output by removing empty translations.
write in interface PropertyConverterencoding - hint about which encoding to useIOExceptionCopyright © 2013–2014 Jabylon. All rights reserved.