Package writer2latex.base
Class ConfigBase
java.lang.Object
writer2latex.base.ConfigBase
- All Implemented Interfaces:
Config
- Direct Known Subclasses:
LaTeXConfig,XhtmlConfig
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ComplexOptionaddComplexOption(String sGroup) getComplexOption(String sGroup) Get a complex optionprotected abstract StringGet a named optionprotected abstract intvoidRead a configuration (file based version)voidread(InputStream is) Read configuration from a specified input streamvoidreadDefaultConfig(String sName) Read a default configuration: The available configurations depend on theConverterimplementationprotected abstract voidRead configuration information from an xml element.voidSet a name/value option.voidWrite the configuration (file based version)voidwrite(OutputStream os) Write the configuration (stream based version)protected abstract voidwriteInner(Document dom) Write configuration information to an xml document.
-
Field Details
-
options
-
optionGroups
-
-
Constructor Details
-
ConfigBase
public ConfigBase()
-
-
Method Details
-
getOptionCount
protected abstract int getOptionCount() -
getDefaultConfigPath
-
setOption
Description copied from interface:ConfigSet a name/value option. Options that are not defined by theConverterimplementation as well as null values are silently ignored -
getOption
Description copied from interface:ConfigGet a named option -
getComplexOption
Description copied from interface:ConfigGet a complex option- Specified by:
getComplexOptionin interfaceConfig- Parameters:
sGroup- the name of the complex option- Returns:
- the option
-
addComplexOption
-
readDefaultConfig
Description copied from interface:ConfigRead a default configuration: The available configurations depend on theConverterimplementation- Specified by:
readDefaultConfigin interfaceConfig- Parameters:
sName- the name of the configuration- Throws:
IllegalArgumentException- if the configuration does not exist
-
read
Read configuration from a specified input stream
- Specified by:
readin interfaceConfig- Parameters:
is- the input stream to read the configuration from- Throws:
IOException- if an error occurs reading the stream, or the data is not in the right format
-
read
Description copied from interface:ConfigRead a configuration (file based version)- Specified by:
readin interfaceConfig- Parameters:
file- theFileto read from- Throws:
IOException- if the file does not exist, an error occurs reading the file, or the data is not in the right format
-
readInner
Read configuration information from an xml element. The subclass must define this to read richer configuration data -
write
Description copied from interface:ConfigWrite the configuration (stream based version)- Specified by:
writein interfaceConfig- Parameters:
os- theOutputStreamto write to- Throws:
IOException- if an error occurs writing to the stream
-
write
Description copied from interface:ConfigWrite the configuration (file based version)- Specified by:
writein interfaceConfig- Parameters:
file- theFileto write to- Throws:
IOException- if an error occurs writing to the file
-
writeInner
Write configuration information to an xml document. The subclass must define this to write richer configuration data
-