Class Main
java.lang.Object
org.apache.batik.apps.svgpp.Main
This class is the main class of the svgpp application.
svgpp is a pretty-printer for SVG source files.
- Version:
- $Id$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classTo handle the '-doctype' option.protected classTo handle the '-doc-width' option.protected classTo handle the '-newline' option.protected classTo handle the '-no-format' option.protected static interfaceThis interface represents an option handler.protected classTo handle the '-public-id' option.protected classTo handle the '-system-id' option.protected classTo handle the '-tab-width' option.protected classTo handle the '-xml-decl' option. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]The arguments.static final StringThe default resource bundle base name.protected MapThe option handlers.protected intThe current index.protected static LocalizableSupportThe localizable support.protected TranscoderThe transcoder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThe application main method.protected voidPrints the command header.protected voidPrints the command usage.voidrun()Runs the pretty printer.
-
Field Details
-
BUNDLE_CLASSNAME
-
localizableSupport
The localizable support. -
arguments
The arguments. -
index
protected int indexThe current index. -
handlers
The option handlers. -
transcoder
The transcoder.
-
-
Constructor Details
-
Main
Initializes the application.- Parameters:
args- The command-line arguments.
-
-
Method Details
-
main
The application main method.- Parameters:
args- The command-line arguments.
-
run
public void run()Runs the pretty printer. -
printUsage
protected void printUsage()Prints the command usage. -
printHeader
protected void printHeader()Prints the command header.
-