public class SketchToXmlConverter extends Object
Constructor and Description |
---|
SketchToXmlConverter() |
Modifier and Type | Method and Description |
---|---|
void |
convert(Reader in,
File outDir,
String outFn) |
static File |
getFileProp(Properties properties,
String name,
File basePath)
Get a File property from a Properties object.
|
static File |
getFileProp(Properties properties,
String name,
String defaultValue,
File basePath)
Get a File property from a Properties object.
|
static Properties |
getPropertiesFromResource(String resourcePath)
Read Properties from a resource
|
static void |
main(String[] args) |
boolean |
processLine(String line,
Writer out) |
public static void main(String[] args) throws IOException
IOException
public static Properties getPropertiesFromResource(String resourcePath) throws IOException
resourcePath
- file path, relative to the classpath, where the
properties file isIOException
public static File getFileProp(Properties properties, String name, File basePath)
properties
- where to read the value fromname
- the value's namebasePath
- base path the file path may be relative topublic static File getFileProp(Properties properties, String name, String defaultValue, File basePath)
properties
- where to read the value fromname
- the value's namedefaultValue
- default value if the property was not specifiedbasePath
- base path the file path may be relative topublic boolean processLine(String line, Writer out) throws IOException
IOException
public void convert(Reader in, File outDir, String outFn) throws IOException
IOException
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.