com.faa.sax.util
Class Indent

java.lang.Object
  |
  +--com.faa.sax.util.Indent

public class Indent
extends java.lang.Object

Indent (com.faa.sax.util.Indent) is a Java SAX program to format an XML document.

Syntax

java com.faa.sax.util.Indent [options] [inputFile [outputFile]]

Options

-t=X indent elements using X tabs. Overrides -s. Default: off.
-s=X indent elements using X spaces. Default: -s=3
-f=X auto-fill text at column X. Default: off.
-a=X number of attributes per line. Default: -a=1
-l+X align running line text to start or end of
parent element start tag (plus and optional X offset).
Default: -l+1
-l1 align first line of text too. Default: off
-parser=X. sets parser to class X.Default: 
org.apache.xerces.parsers.SAXParser


Constructor Summary
Indent()
           
 
Method Summary
static void main(java.lang.String[] args)
          Deal with application parameters.
static void startIndent()
          Create the parser and start processing
static void usage()
          Simply output the usage information to the standard output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Indent

public Indent()
Method Detail

startIndent

public static void startIndent()
Create the parser and start processing

main

public static void main(java.lang.String[] args)
Deal with application parameters. Create the sax processor and start the parsing process

usage

public static void usage()
Simply output the usage information to the standard output.