net.sourceforge.schemaspy.util
Class LineWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.BufferedWriter
          extended by net.sourceforge.schemaspy.util.LineWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class LineWriter
extends BufferedWriter

BufferedWriter that adds a writeln() method to output a lineDelimited line of text without cluttering up code.


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
LineWriter(OutputStream out)
          Construct a LineWriter with UTF8 output
LineWriter(Writer out)
           
LineWriter(Writer out, int sz)
           
 
Method Summary
 void writeln()
           
 void writeln(String str)
           
 
Methods inherited from class java.io.BufferedWriter
close, flush, newLine, write, write, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineWriter

public LineWriter(Writer out)

LineWriter

public LineWriter(Writer out,
                  int sz)

LineWriter

public LineWriter(OutputStream out)
           throws UnsupportedEncodingException
Construct a LineWriter with UTF8 output

Parameters:
out - OutputStream
Throws:
UnsupportedEncodingException
Method Detail

writeln

public void writeln(String str)
             throws IOException
Throws:
IOException

writeln

public void writeln()
             throws IOException
Throws:
IOException


Copyright © 2007-2010. All Rights Reserved.