JTP API Documentation

jtp.util
Class IndentingWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--java.io.FilterWriter
              |
              +--jtp.util.IndentingWriter

public class IndentingWriter
extends FilterWriter


Field Summary
 
Fields inherited from class java.io.FilterWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
IndentingWriter(Writer out)
           
 
Method Summary
 int getColumn()
           
 int getLeftMargin()
           
 int getRightMargin()
           
 void setColumn(int newColumn)
           
 void setLeftMargin(int newLeftMargin)
           
 void setRightMargin(int newRightMargin)
           
 void write(char c)
           
 void write(char[] cbuf, int off, int len)
           
 void write(String str, int off, int len)
           
 
Methods inherited from class java.io.FilterWriter
close, flush, write
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndentingWriter

public IndentingWriter(Writer out)
Method Detail

getColumn

public int getColumn()

setColumn

public void setColumn(int newColumn)

getRightMargin

public int getRightMargin()

setRightMargin

public void setRightMargin(int newRightMargin)

getLeftMargin

public int getLeftMargin()

setLeftMargin

public void setLeftMargin(int newLeftMargin)

write

public void write(char c)
           throws IOException
IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class FilterWriter
IOException

write

public void write(String str,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class FilterWriter
IOException

JTP API Documentation