public class LineBufferingIterator extends java.lang.Object implements CloseableIterator<java.lang.String>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Iterator<java.lang.String> |
currIter |
protected CloseableIterator<java.lang.String> |
inner |
protected int |
maxLines |
protected boolean |
reverse |
| Constructor and Description |
|---|
LineBufferingIterator(CloseableIterator<java.lang.String> inner,
int maxLines,
boolean reverse) |
| Modifier and Type | Method and Description |
|---|---|
void |
bufferInput() |
void |
close() |
boolean |
hasNext() |
java.lang.String |
next() |
void |
remove() |
protected CloseableIterator<java.lang.String> inner
protected int maxLines
protected boolean reverse
protected java.util.Iterator<java.lang.String> currIter
public LineBufferingIterator(CloseableIterator<java.lang.String> inner, int maxLines, boolean reverse)
public void bufferInput()
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.String>public java.lang.String next()
next in interface java.util.Iterator<java.lang.String>public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void remove()
remove in interface java.util.Iterator<java.lang.String>Copyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.