aQute.lib.collections
Class LineCollection

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

public class LineCollection
extends java.lang.Object
implements java.util.Iterator<java.lang.String>, java.io.Closeable


Constructor Summary
LineCollection(java.io.BufferedReader reader)
           
LineCollection(java.io.File in)
           
LineCollection(java.io.InputStream in)
           
LineCollection(java.io.Reader reader)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 java.lang.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(java.io.InputStream in)
               throws java.io.IOException
Throws:
java.io.IOException

LineCollection

public LineCollection(java.io.File in)
               throws java.io.IOException
Throws:
java.io.IOException

LineCollection

public LineCollection(java.io.Reader reader)
               throws java.io.IOException
Throws:
java.io.IOException

LineCollection

public LineCollection(java.io.BufferedReader reader)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<java.lang.String>

next

public java.lang.String next()
Specified by:
next in interface java.util.Iterator<java.lang.String>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<java.lang.String>

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Throws:
java.io.IOException