Package org.jabylon.properties.types
Interface PropertyConverter
-
- All Known Implementing Classes:
POHelper,PropertiesHelper,TMXConverter
public interface PropertyConverter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PropertyFileload(InputStream in, String encoding)loads the given input stream and transform it into aPropertyFileintwrite(OutputStream out, PropertyFile file, String encoding)serializes the givenPropertyFileinto the output steam
-
-
-
Method Detail
-
load
PropertyFile load(InputStream in, String encoding) throws IOException
loads the given input stream and transform it into aPropertyFileThe implementation is expected to close the stream upon completion
- Parameters:
in-encoding- hint about which encoding to use- Returns:
- Throws:
IOException
-
write
int write(OutputStream out, PropertyFile file, String encoding) throws IOException
serializes the givenPropertyFileinto the output steamThe implementation is expected to close the stream upon completion
The implementation is free to optimize the output by removing empty translations.
- Parameters:
out-file-encoding- hint about which encoding to use- Returns:
- number of translated (non-empty) keys
- Throws:
IOException
-
-