flattree.flat
Class FlatWriter

java.lang.Object
  extended by flattree.flat.FlatWriter

public class FlatWriter
extends Object

A writer of a flat character stream in chunks of WriteLines.

See Also:
next()

Nested Class Summary
static class FlatWriter.Flush
           
 
Constructor Summary
FlatWriter(Writer writer)
          Write characters to the given writer.
FlatWriter(Writer writer, FlatWriter.Flush flush)
          Write characters to the given writer.
 
Method Summary
 WriteLine next()
          Move to the next line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatWriter

public FlatWriter(Writer writer)
Write characters to the given writer.

Parameters:
writer - writer to write characters to

FlatWriter

public FlatWriter(Writer writer,
                  FlatWriter.Flush flush)
Write characters to the given writer.

Parameters:
writer - writer to write characters to
Method Detail

next

public WriteLine next()
Move to the next line.

Returns:
the next line


Copyright © 2011. All Rights Reserved.