Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.cantaloop.tools
Class PrettyPrinter  view PrettyPrinter download PrettyPrinter.java

java.lang.Object
  extended byorg.cantaloop.tools.PrettyPrinter

public class PrettyPrinter
extends java.lang.Object

Entry point for pretty printing a file.

Version:
@version@ ($Revision: 1.5 $)

Field Summary
protected static int LINE_LENGTH_DEVIATION
          The default line length deviation.
protected static int PREFERRED_LINE_LENGTH
          The default preferred line length.
protected static int SPACE_INDENTATION
          The default space indentation.
 
Constructor Summary
PrettyPrinter()
          Creates a new PrettyPrinter instance.
 
Method Summary
 void prettyPrint(java.io.File f)
          Pretty print the file f.
 void setConfigurationFile(java.io.File config)
          Set the configuration file for the pretty printer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFERRED_LINE_LENGTH

protected static final int PREFERRED_LINE_LENGTH
The default preferred line length.

See Also:
Constant Field Values

LINE_LENGTH_DEVIATION

protected static final int LINE_LENGTH_DEVIATION
The default line length deviation.

See Also:
Constant Field Values

SPACE_INDENTATION

protected static final int SPACE_INDENTATION
The default space indentation.

See Also:
Constant Field Values
Constructor Detail

PrettyPrinter

public PrettyPrinter()
Creates a new PrettyPrinter instance.

Method Detail

setConfigurationFile

public void setConfigurationFile(java.io.File config)
Set the configuration file for the pretty printer. Currently, this method does not have any effect.


prettyPrint

public void prettyPrint(java.io.File f)
                 throws java.io.IOException
Pretty print the file f.