org.archive.wayback.resourceindex.ziplines
Class ZiplinedBlock

java.lang.Object
  extended by org.archive.wayback.resourceindex.ziplines.ZiplinedBlock

public class ZiplinedBlock
extends Object

Author:
brad

Field Summary
static int BLOCK_SIZE
           
 
Constructor Summary
ZiplinedBlock(String urlOrPath, long offset)
           
ZiplinedBlock(String urlOrPath, long offset, int count)
           
 
Method Summary
 BufferedReader readBlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLOCK_SIZE

public static final int BLOCK_SIZE
See Also:
Constant Field Values
Constructor Detail

ZiplinedBlock

public ZiplinedBlock(String urlOrPath,
                     long offset)
Parameters:
urlOrPath - URL where this file can be downloaded
offset - start of 128K block boundary.

ZiplinedBlock

public ZiplinedBlock(String urlOrPath,
                     long offset,
                     int count)
Parameters:
urlOrPath - URL where this file can be downloaded
offset - start of 128K block boundary.
count - number of records in this block
Method Detail

readBlock

public BufferedReader readBlock()
                         throws IOException
Returns:
a BufferedReader of the underlying compressed data in this block
Throws:
IOException - for usual reasons


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