org.apache.fop.cli
Class CommandLineOptions
java.lang.Object
org.apache.fop.cli.CommandLineOptions
public class CommandLineOptions
extends java.lang.Object
Options parses the commandline arguments
static int | AREATREE_INPUT - input: Area Tree XML file
|
static int | FO_INPUT - input: fo file
|
static int | NOT_SET - (input) not set
|
static int | RENDER_NONE - Used to indicate that only the result of the XSL transformation should be output
|
static int | XSLT_INPUT - input: xml+xsl file
|
AREATREE_INPUT
public static final int AREATREE_INPUT
input: Area Tree XML file
FO_INPUT
public static final int FO_INPUT
input: fo file
NOT_SET
public static final int NOT_SET
(input) not set
RENDER_NONE
public static final int RENDER_NONE
Used to indicate that only the result of the XSL transformation should be output
XSLT_INPUT
public static final int XSLT_INPUT
input: xml+xsl file
CommandLineOptions
public CommandLineOptions()
Construct a command line option object.
getFOFile
public File getFOFile()
Returns the XSL-FO file if set.
- the XSL-FO file, null if not set
getFOUserAgent
protected FOUserAgent getFOUserAgent()
Get the FOUserAgent for this Command-Line run
getInputFile
public File getInputFile()
Returns the input file.
- either the fofile or the xmlfile
getInputHandler
public InputHandler getInputHandler()
- the InputHandler instance defined by the command-line options.
getLogger
public Log getLogger()
Get the logger.
getOutputFile
public File getOutputFile()
Returns the output file
getOutputFormat
protected String getOutputFormat()
throws FOPException
- the chosen output format (MIME type)
getUserConfigFile
public File getUserConfigFile()
Returns the user configuration file to be used.
getXMLFile
public File getXMLFile()
Returns the input XML file if set.
- the input XML file, null if not set
getXSLFile
public File getXSLFile()
Returns the stylesheet to be used for transformation to XSL-FO.
isCoarseAreaXml
public Boolean isCoarseAreaXml()
Indicates whether the XML renderer should generate coarse area XML
- true if coarse area XML is desired
parse
public void parse(String[] args)
throws FOPException,
IOException
Parse the command line arguments.
args
- the command line arguments.
printUsage
public static void printUsage()
shows the commandline syntax including a summary of all available options and some examples
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.