org.apache.fop.apps
Class CommandLine
- Direct Known Subclasses:
- PrintCommandLine
- public class CommandLine
mainline class.
Gets input and output filenames from the command line.
Creates a SAX Parser (defaulting to Xerces).
Method Summary |
(package private) static XMLReader | createParser() creates a SAX parser, using the value of org.xml.sax.parser
defaulting to org.apache.xerces.parsers.SAXParser |
static InputSource | fileInputSource(String filename) create an InputSource from a file name |
static void | main(String[] args) mainline method
first command line argument is input file
second command line argument is output file |
void | printUsage(String arg) |
void | run() |
CommandLine
public CommandLine(String[] args)
createParser
static XMLReader createParser()
- creates a SAX parser, using the value of org.xml.sax.parser
defaulting to org.apache.xerces.parsers.SAXParser
- Returns: the created SAX parser
fileInputSource
public static InputSource fileInputSource(String filename)
- create an InputSource from a file name
- Parameters:
- filename - the name of the file
- Returns: the InputSource created
main
public static void main(String[] args)
- mainline method
first command line argument is input file
second command line argument is output file
- Parameters:
- command - line arguments
printUsage
public void printUsage(String arg)
run
public void run()
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String