org.archive.wayback.util.flatfile
Class ReverseBufferedReader

java.lang.Object
  extended by org.archive.wayback.util.flatfile.ReverseBufferedReader

public class ReverseBufferedReader
extends Object

Just like a BufferedReader, except the buffer scrolls backvards, allowing this one to support 'readPrevLine()' instead of readLine().

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

Constructor Summary
ReverseBufferedReader(RandomAccessFile raf)
           
 
Method Summary
 void close()
           
 String readPrevLine()
           
 void setBufferSize(int bufferSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReverseBufferedReader

public ReverseBufferedReader(RandomAccessFile raf)
                      throws IOException
Parameters:
raf -
Throws:
IOException
Method Detail

setBufferSize

public void setBufferSize(int bufferSize)
Parameters:
bufferSize - The bufferSize to set.

readPrevLine

public String readPrevLine()
                    throws IOException
Returns:
String previous line read from the file
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException


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