at.dms.dis
Class IndentingWriter

java.lang.Object
  |
  +--at.dms.dis.IndentingWriter

class IndentingWriter
extends java.lang.Object

This class allows indented output.


Constructor Summary
IndentingWriter(java.io.PrintWriter out)
          Creates a new indenting writer.
 
Method Summary
 void decrementLevel()
          Decrements the indentation level.
 void incrementLevel()
          Increments the indentation level.
 void print(int value)
          Prints an integer.
 void print(java.lang.String value)
          Prints a string.
 void println()
          Terminates the current line by writing the line separator string and moving to the current indentation level.
 void println(java.lang.String str)
          Prints a string and then terminates the line.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndentingWriter

public IndentingWriter(java.io.PrintWriter out)
Creates a new indenting writer.
Parameters:
out - The print writer to writer to.
Method Detail

incrementLevel

public void incrementLevel()
Increments the indentation level.

decrementLevel

public void decrementLevel()
Decrements the indentation level.

print

public void print(java.lang.String value)
Prints a string.
Parameters:
value - The string to print.

print

public void print(int value)
Prints an integer.
Parameters:
value - The integer to print.

println

public void println()
Terminates the current line by writing the line separator string and moving to the current indentation level.

println

public void println(java.lang.String str)
Prints a string and then terminates the line.
Parameters:
str - The string to print.