public class LineCollection
extends java.lang.Object
implements java.util.Iterator<java.lang.String>, java.io.Closeable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
next |
private java.io.BufferedReader |
reader |
Constructor and Description |
---|
LineCollection(java.io.BufferedReader reader) |
LineCollection(java.io.File in) |
LineCollection(java.io.InputStream in) |
LineCollection(java.io.Reader reader) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
hasNext() |
java.lang.String |
next() |
void |
remove() |
public LineCollection(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public LineCollection(java.io.File in) throws java.io.IOException
java.io.IOException
public LineCollection(java.io.Reader reader) throws java.io.IOException
java.io.IOException
public LineCollection(java.io.BufferedReader reader) throws java.io.IOException
java.io.IOException
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 remove()
remove
in interface java.util.Iterator<java.lang.String>
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException