aQute.lib.collections
Class LineCollection

java.lang.Object
  extended by aQute.lib.collections.LineCollection
All Implemented Interfaces:
Closeable, Iterator<String>

public class LineCollection
extends Object
implements Iterator<String>, Closeable


Constructor Summary
LineCollection(BufferedReader reader)
           
LineCollection(File in)
           
LineCollection(InputStream in)
           
LineCollection(Reader reader)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 String next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.