org.archive.wayback.resourceindex.ziplines
Class ZiplinesChunkIterator

java.lang.Object
  extended by org.archive.wayback.resourceindex.ziplines.ZiplinesChunkIterator
All Implemented Interfaces:
Closeable, Iterator<String>, CloseableIterator<String>

public class ZiplinesChunkIterator
extends Object
implements CloseableIterator<String>

Author:
brad

Constructor Summary
ZiplinesChunkIterator(List<ZiplinedBlock> blocks)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 boolean isTruncated()
           
static void main(String[] args)
           
 String next()
           
 void remove()
           
 void setTruncated(boolean truncated)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZiplinesChunkIterator

public ZiplinesChunkIterator(List<ZiplinedBlock> blocks)
Parameters:
blocks - which should be fetched and unzipped, one after another
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<String>

next

public String next()
Specified by:
next in interface Iterator<String>

remove

public void remove()
Specified by:
remove in interface Iterator<String>

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

main

public static void main(String[] args)

isTruncated

public boolean isTruncated()
Returns:
the truncated

setTruncated

public void setTruncated(boolean truncated)
Parameters:
truncated - the truncated to set


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