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(Map options)
Determines the log level based of the options from the command-line.
|
protected static String[] |
parseArguments(Map options,
String[] args)
Parse commandline arguments.
|
protected static void |
setLogLevel(String level)
Sets the logging level.
|
void |
writeFontXML(Document doc,
File target)
Writes the generated DOM Document to a file.
|
void |
writeFontXML(Document doc,
String target)
Writes the generated DOM Document to a file.
|
protected static String[] parseArguments(Map options, String[] args)
options
- Map that will receive optionsargs
- the command-line argumentsprotected static void setLogLevel(String level)
level
- the logging level ("debug", "info", "error" etc., see Jakarta Commons Logging)protected static void determineLogLevel(Map options)
options
- the command-line optionspublic void writeFontXML(Document doc, String target) throws TransformerException
doc
- The DOM Document to save.target
- The target filename for the XML file.TransformerException
- if an error occurs during serializationpublic void writeFontXML(Document doc, File target) throws TransformerException
doc
- The DOM Document to save.target
- The target file for the XML file.TransformerException
- if an error occurs during serializationCopyright © 2025 Apache Software Foundation. All rights reserved.