Class PropertiesConverter
- java.lang.Object
-
- org.daisy.dotify.devtools.converters.PropertiesConverter
-
public class PropertiesConverter extends Object
-
-
Constructor Summary
Constructors Constructor Description PropertiesConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconvert(File in, File out)Converts a java properties file to or from XML.static voidmain(String[] args)
-
-
-
Method Detail
-
convert
public static void convert(File in, File out) throws FileNotFoundException, IOException
Converts a java properties file to or from XML. If the file ends with .properties it is read as a properties file and stored as XML. If the file ends with .xml it is read as XML and stored as properties.- Parameters:
in- the input fileout- the output- Throws:
FileNotFoundException- if a file cannot be convertedIOException- if a file cannot be converted
-
main
public static void main(String[] args) throws FileNotFoundException, IOException
- Throws:
FileNotFoundExceptionIOException
-
-