net.sf.beanlib.util
Class LineIterator
java.lang.Object
net.sf.beanlib.util.LineIterator
- All Implemented Interfaces:
- Closeable, Iterator<String>
@NotThreadSafe
class LineIterator
- extends Object
- implements Iterator<String>, Closeable
- Author:
- Hanson Char
hasNextExecuted
private boolean hasNextExecuted
line
private String line
lnr
private LineNumberReader lnr
textIterable
private final TextIterable textIterable
returnNullUponEof
private final boolean returnNullUponEof
LineIterator
LineIterator(TextIterable textIterable,
InputStream is,
boolean returnNullUponEof,
Charset charset)
LineIterator
LineIterator(TextIterable textIterable,
InputStream is,
boolean returnNullUponEof,
CharsetDecoder decoder)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<String>
next
public String next()
- Specified by:
next
in interface Iterator<String>
eof
private String eof()
close
public void close()
- Specified by:
close
in interface Closeable
getLineNumber
public int getLineNumber()
closeInPrivate
void closeInPrivate()
remove
public void remove()
- Specified by:
remove
in interface Iterator<String>
finalize
public void finalize()
- Overrides:
finalize
in class Object