bpiwowar.argparser.utils
Class ReadLineIterator

java.lang.Object
  extended by bpiwowar.argparser.utils.ReadLineIterator
All Implemented Interfaces:
Closeable, Iterable<String>, Iterator<String>

public class ReadLineIterator
extends Object
implements Iterable<String>, Iterator<String>, Closeable


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

Constructor Detail

ReadLineIterator

public ReadLineIterator(BufferedReader reader)

ReadLineIterator

public ReadLineIterator(Reader in)

ReadLineIterator

public ReadLineIterator(InputStream in)

ReadLineIterator

public ReadLineIterator(File file)
                 throws FileNotFoundException
Throws:
FileNotFoundException
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>

iterator

public Iterator<String> iterator()
Specified by:
iterator in interface Iterable<String>

close

public void close()
Specified by:
close in interface Closeable


Copyright © 2013. All Rights Reserved.