writer2latex.base
Class ConfigBase
java.lang.Object
writer2latex.base.ConfigBase
- Config
public abstract class ConfigBase
extends java.lang.Object
Base implementation of writer2latex.api.Config
options
protected Option[] options
ConfigBase
public ConfigBase()
getDefaultConfigPath
protected abstract String getDefaultConfigPath()
getOption
public String getOption(String sName)
- getOption in interface Config
getOptionCount
protected abstract int getOptionCount()
read
public void read(File file)
throws IOException
- read in interface Config
read
public void read(InputStream is)
throws IOException
Read configuration from a specified input stream
- read in interface Config
is
- the input stream to read the configuration from
readDefaultConfig
public void readDefaultConfig(String sName)
throws IllegalArgumentException
- readDefaultConfig in interface Config
readInner
protected abstract void readInner(Element elm)
Read configuration information from an xml element.
The subclass must define this to read richer configuration data
setOption
public void setOption(String sName,
String sValue)
- setOption in interface Config
write
public void write(File file)
throws IOException
- write in interface Config
write
public void write(OutputStream os)
throws IOException
- write in interface Config
writeInner
protected abstract void writeInner(Document dom)
Write configuration information to an xml document.
The subclass must define this to write richer configuration data