public class OriginEntryFileIterator extends Object implements Iterator<OriginEntryFull>
Modifier and Type | Field and Description |
---|---|
protected boolean |
autoCloseReader |
protected int |
lineNumber |
protected OriginEntryFull |
nextEntry |
protected BufferedReader |
reader |
Constructor and Description |
---|
OriginEntryFileIterator(BufferedReader reader)
Constructs a OriginEntryFileIterator
|
OriginEntryFileIterator(BufferedReader reader,
boolean autoCloseReader)
Constructs a OriginEntryFileIterator
|
OriginEntryFileIterator(File file)
Constructs a OriginEntryFileIterator When constructed with this method, the file handle will be automatically closed when the
end of origin entries has been reached (i.e.
|
Modifier and Type | Method and Description |
---|---|
protected void |
fetchNextEntry()
This method returns the next line in origin entry file
|
protected void |
finalize() |
boolean |
hasNext() |
OriginEntryFull |
next() |
void |
remove() |
protected OriginEntryFull nextEntry
protected BufferedReader reader
protected int lineNumber
protected boolean autoCloseReader
public OriginEntryFileIterator(BufferedReader reader)
reader
- a reader representing flat-file origin entriesautoCloseReader
- whether to automatically close the reader when the end of origin entries has been reached (i.e. when
hasNext() returns false)public OriginEntryFileIterator(BufferedReader reader, boolean autoCloseReader)
reader
- a reader representing flat-file origin entriesautoCloseReader
- whether to automatically close the reader when the end of origin entries has been reached (i.e. when
hasNext() returns false)public OriginEntryFileIterator(File file)
file
- the filepublic boolean hasNext()
hasNext
in interface Iterator<OriginEntryFull>
Iterator.hasNext()
public OriginEntryFull next()
next
in interface Iterator<OriginEntryFull>
Iterator.next()
public void remove()
remove
in interface Iterator<OriginEntryFull>
Iterator.remove()
protected void fetchNextEntry()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.