org.archive.wayback.util.flatfile
Class ReverseBufferedReader
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReverseBufferedReader
public ReverseBufferedReader(RandomAccessFile raf)
throws IOException
- Parameters:
raf -
- Throws:
IOException
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.