aQute.lib.collections
Class LineCollection
java.lang.Object
aQute.lib.collections.LineCollection
- All Implemented Interfaces:
- Closeable, Iterator<String>
public class LineCollection
- extends Object
- implements Iterator<String>, Closeable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineCollection
public LineCollection(InputStream in)
throws IOException
- Throws:
IOException
LineCollection
public LineCollection(File in)
throws IOException
- Throws:
IOException
LineCollection
public LineCollection(Reader reader)
throws IOException
- Throws:
IOException
LineCollection
public LineCollection(BufferedReader reader)
throws IOException
- Throws:
IOException
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<String>
next
public String next()
- Specified by:
next
in interface Iterator<String>
remove
public void remove()
- Specified by:
remove
in interface Iterator<String>
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
Copyright © 2012 aQute SARL. All Rights Reserved.