de.fraunhofer.ipsi.util
Class IndentPrinter

java.lang.Object
  extended by de.fraunhofer.ipsi.util.IndentPrinter

public class IndentPrinter
extends java.lang.Object

The class IndentPrinter is used to print structured data in as an indented hierarchy.

Since:
CVS $Date: 2005/07/22 10:05:49 $
Version:
CVS $Revision: 1.3 $
Author:
Tobias Groh, Sven Overhage

Constructor Summary
IndentPrinter()
          This constructor will create a new IndentPrinter with default indent values.
IndentPrinter(java.io.Writer output)
          This constructor will create a new IndentPrinter with default indent values.
 
Method Summary
 void emptyLine()
          Method emptyLine
 int getIndent()
          The current number of spaces that will be indented.
 void indentDecrease()
          This function decreases the indent by the indent value.
 void indentIncrease()
          This function increases the indent by the indent value.
 void newLine()
          Method newLine
 void print(java.lang.Object o)
          Standard print like System.out.print( Object )
 void setIndent(int i)
          Sets the number of spaces that are indented by the indentPrint function.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndentPrinter

public IndentPrinter()
This constructor will create a new IndentPrinter with default indent values.


IndentPrinter

public IndentPrinter(java.io.Writer output)
This constructor will create a new IndentPrinter with default indent values.

Method Detail

setIndent

public void setIndent(int i)
Sets the number of spaces that are indented by the indentPrint function.

Parameters:
i - Integer - number of spaces to indent

getIndent

public int getIndent()
The current number of spaces that will be indented.

Returns:
Integer - the number of spaces that are printed by indentPrint.

indentIncrease

public void indentIncrease()
This function increases the indent by the indent value.

See Also:
getIndent, setIndent

indentDecrease

public void indentDecrease()
This function decreases the indent by the indent value.

See Also:
setIndent, getIndent

print

public void print(java.lang.Object o)
Standard print like System.out.print( Object )

Parameters:
o - The object that should be printed.

newLine

public void newLine()
Method newLine


emptyLine

public void emptyLine()
Method emptyLine