com.partnersoft.v3x.io.formats
Class PackedObjectDump

java.lang.Object
  extended by com.partnersoft.v3x.io.formats.PackedObjectDump

public class PackedObjectDump
extends java.lang.Object

This is an ObjectDump that has been consolidated into a single file. It works just like a regular ObjectDump but is read-only. Use PackedObjectDump.pack() to create one from an existing ObjectDump.


Constructor Summary
PackedObjectDump(java.io.File file)
          Creates an uncompressed PackedObjectDump for the given file.
PackedObjectDump(java.io.File file, boolean compressed)
          Creates a PackedObjectDump object for the given file.
 
Method Summary
 int getSize()
           
static void main(java.lang.String[] argv)
          Prints every record in the dumpfile.
 java.lang.Object readObject(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackedObjectDump

public PackedObjectDump(java.io.File file,
                        boolean compressed)
                 throws java.io.IOException
Creates a PackedObjectDump object for the given file. If the file does not exist the PackedObjectDump has a size of zero.

Throws:
java.io.IOException

PackedObjectDump

public PackedObjectDump(java.io.File file)
                 throws java.io.IOException
Creates an uncompressed PackedObjectDump for the given file.

Throws:
java.io.IOException
Method Detail

main

public static void main(java.lang.String[] argv)
Prints every record in the dumpfile.


getSize

public int getSize()

readObject

public java.lang.Object readObject(int index)
                            throws java.io.IOException
Throws:
java.io.IOException