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).


Constructor Summary
CommandLine(String[] args)
           

Method Summary
 (package private) static XMLReadercreateParser()
          creates a SAX parser, using the value of org.xml.sax.parser defaulting to org.apache.xerces.parsers.SAXParser
 static InputSourcefileInputSource(String filename)
          create an InputSource from a file name
 static voidmain(String[] args)
          mainline method first command line argument is input file second command line argument is output file
 voidprintUsage(String arg)
           
 voidrun()
           

Constructor Detail

CommandLine

public CommandLine(String[] args)
Method Detail

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()

Association Links

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String