Class TMXConverter
- java.lang.Object
-
- org.jabylon.properties.types.impl.TMXConverter
-
- All Implemented Interfaces:
PropertyConverter
public class TMXConverter extends Object implements PropertyConverter
- Author:
- jutzig.dev@googlemail.com
-
-
Constructor Summary
Constructors Constructor Description TMXConverter()
-
Method Summary
All Methods Instance Methods Concrete 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
public PropertyFile load(InputStream in, String encoding) throws IOException
Description copied from interface:PropertyConverterloads the given input stream and transform it into aPropertyFileThe implementation is expected to close the stream upon completion
- Specified by:
loadin interfacePropertyConverterencoding- hint about which encoding to use- Returns:
- Throws:
IOException
-
write
public int write(OutputStream out, PropertyFile file, String encoding) throws IOException
Description copied from interface:PropertyConverterserializes 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.
- Specified by:
writein interfacePropertyConverterencoding- hint about which encoding to use- Returns:
- number of translated (non-empty) keys
- Throws:
IOException
-
-