Modifier and Type | Field and Description |
---|---|
private FileInput |
fileInput |
private BufferedReader |
reader |
Constructor and Description |
---|
FileInputIterator(FileInput fileInput)
Create a iterator over the contents of a file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
String |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
private FileInput fileInput
private BufferedReader reader
public FileInputIterator(FileInput fileInput)
fileInput
- the FileInput object over which the iterator should run.Copyright © 2015 University of Glasgow. All rights reserved.