Package org.apache.batik.apps.svgpp
Class Main
- java.lang.Object
-
- org.apache.batik.apps.svgpp.Main
-
public class Main extends java.lang.ObjectThis class is the main class of the svgpp application.svgpp is a pretty-printer for SVG source files.
- Version:
- $Id: Main.java 1831635 2018-05-15 13:33:47Z ssteiner $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classMain.DoctypeHandlerTo handle the '-doctype' option.protected classMain.DocWidthHandlerTo handle the '-doc-width' option.protected classMain.NewlineHandlerTo handle the '-newline' option.protected classMain.NoFormatHandlerTo handle the '-no-format' option.protected static interfaceMain.OptionHandlerThis interface represents an option handler.protected classMain.PublicIdHandlerTo handle the '-public-id' option.protected classMain.SystemIdHandlerTo handle the '-system-id' option.protected classMain.TabWidthHandlerTo handle the '-tab-width' option.protected classMain.XMLDeclHandlerTo handle the '-xml-decl' option.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]argumentsThe arguments.static java.lang.StringBUNDLE_CLASSNAMEThe default resource bundle base name.protected java.util.MaphandlersThe option handlers.protected intindexThe current index.protected static LocalizableSupportlocalizableSupportThe localizable support.protected TranscodertranscoderThe transcoder.
-
Constructor Summary
Constructors Constructor Description Main(java.lang.String[] args)Initializes the application.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)The application main method.protected voidprintHeader()Prints the command header.protected voidprintUsage()Prints the command usage.voidrun()Runs the pretty printer.
-
-
-
Field Detail
-
BUNDLE_CLASSNAME
public static final java.lang.String BUNDLE_CLASSNAME
The default resource bundle base name.- See Also:
- Constant Field Values
-
localizableSupport
protected static LocalizableSupport localizableSupport
The localizable support.
-
arguments
protected java.lang.String[] arguments
The arguments.
-
index
protected int index
The current index.
-
handlers
protected java.util.Map handlers
The option handlers.
-
transcoder
protected Transcoder transcoder
The transcoder.
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
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.
-
-