com.partnersoft.v3x.io.formats
Class NamedObjectDumpIterator

java.lang.Object
  extended by com.partnersoft.v3x.io.formats.NamedObjectDumpIterator
All Implemented Interfaces:
java.util.Iterator

public class NamedObjectDumpIterator
extends java.lang.Object
implements java.util.Iterator

Allows iteration through a named object dump without high memory or i/o overhead.


Field Summary
 ByteBuffer currentBytes
           
 int currentIndex
           
 java.lang.String currentName
           
 long currentOffset
           
 java.io.File dataFile
           
 long nextOffset
           
 java.io.File offsetsFile
           
 int size
           
 
Constructor Summary
NamedObjectDumpIterator(java.io.File dumpFile)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

public int size

currentIndex

public int currentIndex

currentName

public java.lang.String currentName

currentBytes

public ByteBuffer currentBytes

currentOffset

public long currentOffset

nextOffset

public long nextOffset

offsetsFile

public java.io.File offsetsFile

dataFile

public java.io.File dataFile
Constructor Detail

NamedObjectDumpIterator

public NamedObjectDumpIterator(java.io.File dumpFile)
                        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException