flattree.flat
Class FlatReader

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

public class FlatReader
extends Object

A reader of a flat character stream in chunks of ReadLines.

See Also:
next(), line()

Constructor Summary
FlatReader(Reader reader)
          Read characters from the given reader.
 
Method Summary
 ReadLine line()
          Get the current line - discards any previously read characters on the same line.
 boolean 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

FlatReader

public FlatReader(Reader reader)
Read characters from the given reader.

Parameters:
reader - reader to read characters from
Method Detail

next

public boolean next()
Move to the next line.

Returns:
true if a next line is available
See Also:
line()

line

public ReadLine line()
Get the current line - discards any previously read characters on the same line.

Returns:
current line


Copyright © 2011. All Rights Reserved.