org.apache.batik.apps.svgpp

Class Main

public class Main extends Object

This class is the main class of the svgpp application.

svgpp is a pretty-printer for SVG source files.

Nested Class Summary
protected classMain.DoctypeHandler
To handle the '-doctype' option.
protected classMain.DocWidthHandler
To handle the '-doc-width' option.
protected classMain.NewlineHandler
To handle the '-newline' option.
protected classMain.NoFormatHandler
To handle the '-no-format' option.
protected interfaceMain.OptionHandler
This interface represents an option handler.
protected classMain.PublicIdHandler
To handle the '-public-id' option.
protected classMain.SystemIdHandler
To handle the '-system-id' option.
protected classMain.TabWidthHandler
To handle the '-tab-width' option.
protected classMain.XMLDeclHandler
To handle the '-xml-decl' option.
Field Summary
protected String[]arguments
The arguments.
static StringBUNDLE_CLASSNAME
The default resource bundle base name.
protected Maphandlers
The option handlers.
protected intindex
The current index.
protected static LocalizableSupportlocalizableSupport
The localizable support.
protected Transcodertranscoder
The transcoder.
Constructor Summary
Main(String[] args)
Initializes the application.
Method Summary
static voidmain(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

arguments

protected String[] arguments
The arguments.

BUNDLE_CLASSNAME

public static final String BUNDLE_CLASSNAME
The default resource bundle base name.

handlers

protected Map handlers
The option handlers.

index

protected int index
The current index.

localizableSupport

protected static LocalizableSupport localizableSupport
The localizable support.

transcoder

protected Transcoder transcoder
The transcoder.

Constructor Detail

Main

public Main(String[] args)
Initializes the application.

Parameters: args The command-line arguments.

Method Detail

main

public static void main(String[] args)
The application main method.

Parameters: args The command-line arguments.

printHeader

protected void printHeader()
Prints the command header.

printUsage

protected void printUsage()
Prints the command usage.

run

public void run()
Runs the pretty printer.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.