org.archive.wayback.util.flatfile
Class ReverseRecordIterator

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

public class ReverseRecordIterator
extends Object
implements CloseableIterator<String>

Iterator that returns lines from a file reverse sequentially.

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

Field Summary
protected  ReverseBufferedReader br
           
protected  boolean done
           
protected  String next
           
 
Constructor Summary
ReverseRecordIterator(ReverseBufferedReader 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

br

protected ReverseBufferedReader br

next

protected String next

done

protected boolean done
Constructor Detail

ReverseRecordIterator

public ReverseRecordIterator(ReverseBufferedReader 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.