org.archive.wayback.util
Class CachedFile

java.lang.Object
  extended by org.archive.wayback.util.flatfile.FlatFile
      extended by org.archive.wayback.util.CachedFile

public class CachedFile
extends FlatFile

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

Field Summary
 
Fields inherited from class org.archive.wayback.util.flatfile.FlatFile
file
 
Constructor Summary
CachedFile(File targetFile, URL sourceUrl, long checkIntervalMS)
           
 
Method Summary
 CloseableIterator<String> getSequentialIterator()
           
 
Methods inherited from class org.archive.wayback.util.flatfile.FlatFile
findKeyOffset, findKeyOffsetLT, getLastMatchOffset, getPath, getRecordIterator, getRecordIteratorLT, getReverseRecordIterator, main, setPath, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedFile

public CachedFile(File targetFile,
                  URL sourceUrl,
                  long checkIntervalMS)
Parameters:
targetFile -
sourceUrl -
checkIntervalMS -
Method Detail

getSequentialIterator

public CloseableIterator<String> getSequentialIterator()
                                                throws IOException
Overrides:
getSequentialIterator in class FlatFile
Returns:
Iterator of lines in File
Throws:
IOException


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