org.archive.wayback.util.flatfile
Class RecordIterator

java.lang.Object
  extended by org.archive.wayback.util.flatfile.RecordIterator
All Implemented Interfaces:
Closeable, Iterator<String>, CloseableIterator<String>

public class RecordIterator
extends Object
implements CloseableIterator<String>

Iterator that returns sequential lines from a file.

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Field Summary
protected  boolean done
           
protected  String next
           
 
Constructor Summary
RecordIterator(BufferedReader br)
           
 
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
 

Field Detail

next

protected String next

done

protected boolean done
Constructor Detail

RecordIterator

public RecordIterator(BufferedReader br)
Parameters:
br -
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<String>

next

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

close

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

remove

public void remove()
Specified by:
remove in interface Iterator<String>


Copyright © 2005-2011 Internet Archive. All Rights Reserved.