Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
Logger instance
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractFontReader()
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
determineLogLevel(java.util.Map options)
Determines the log level based of the options from the command-line.
|
protected static java.lang.String[] |
parseArguments(java.util.Map options,
java.lang.String[] args)
Parse commandline arguments.
|
protected static void |
setLogLevel(java.lang.String level)
Sets the logging level.
|
void |
writeFontXML(org.w3c.dom.Document doc,
java.io.File target)
Writes the generated DOM Document to a file.
|
void |
writeFontXML(org.w3c.dom.Document doc,
java.lang.String target)
Writes the generated DOM Document to a file.
|
protected static java.lang.String[] parseArguments(java.util.Map options, java.lang.String[] args)
options
- Map that will receive optionsargs
- the command-line argumentsprotected static void setLogLevel(java.lang.String level)
level
- the logging level ("debug", "info", "error" etc., see Jakarta Commons Logging)protected static void determineLogLevel(java.util.Map options)
options
- the command-line optionspublic void writeFontXML(org.w3c.dom.Document doc, java.lang.String target) throws javax.xml.transform.TransformerException
doc
- The DOM Document to save.target
- The target filename for the XML file.javax.xml.transform.TransformerException
- if an error occurs during serializationpublic void writeFontXML(org.w3c.dom.Document doc, java.io.File target) throws javax.xml.transform.TransformerException
doc
- The DOM Document to save.target
- The target file for the XML file.javax.xml.transform.TransformerException
- if an error occurs during serializationCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.