public interface PropertyConverter
| 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 |
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. |
PropertyFile load(InputStream in, String encoding) throws IOException
PropertyFile
The implementation is expected to close the stream upon completion
in - encoding - hint about which encoding to useIOExceptionint write(OutputStream out, PropertyFile file, String encoding) throws IOException
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.
out - file - encoding - hint about which encoding to useIOExceptionCopyright © 2013–2014 Jabylon. All rights reserved.