jd.io
Class SourceWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.PrintWriter
          extended byjd.io.TabWriter
              extended byjd.io.SourceWriter

public class SourceWriter
extends TabWriter

A TabWriter to write source code files.


Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
SourceWriter(Writer out)
          Create a new SourceWriter.
SourceWriter(Writer out, boolean autoFlush)
          Create a new SourceWriter.
 
Method Summary
 void beginBlock()
          Start a new block.
 void defineBeginBlockTokens(String begin, String end)
          Definiert den String, der am Beginn eines Block ausgegeben wird.
 void endBlock()
          End a block.
 void endBlock(String s)
          End the block, print the given string and finish the line.
 void println(int count)
           
 
Methods inherited from class jd.io.TabWriter
checkError, close, decreaseTab, flush, getBufferUsed, getTabCount, increaseTab, newLineStarted, print, println, println, println, println, println, println, println, println, println, resetBuffer, setError, setLineSeparator, setTabChars, write, write, write, write, write, writeNewLineTab
 
Methods inherited from class java.io.PrintWriter
print, print, print, print, print, print, print, print, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceWriter

public SourceWriter(Writer out)
Create a new SourceWriter.

Parameters:
out - a Writer

SourceWriter

public SourceWriter(Writer out,
                    boolean autoFlush)
Create a new SourceWriter.

Parameters:
out - a Writer
autoFlush - - a boolean; if true, the println() methods will flush the output buffer
Method Detail

println

public void println(int count)
Overrides:
println in class TabWriter

beginBlock

public void beginBlock()
Start a new block.


endBlock

public void endBlock()
End a block.


endBlock

public void endBlock(String s)
End the block, print the given string and finish the line.


defineBeginBlockTokens

public void defineBeginBlockTokens(String begin,
                                   String end)
Definiert den String, der am Beginn eines Block ausgegeben wird. Per default ist das "{".

See Also:
beginBlock()