com.partnersoft.v3x.io.formats
Class GoedelObjectDumpBuilder
java.lang.Object
com.partnersoft.v3x.io.formats.GoedelObjectDumpBuilder
public class GoedelObjectDumpBuilder
- extends java.lang.Object
This class builds GoedelObjectDumps using buffered streams. More efficient
than the GoedelObjectDump append methods. Building can be stopped and
restarted; this allows having a cache of builders, stopping ones that are
stale but restarting them later when needed.
|
Constructor Summary |
GoedelObjectDumpBuilder(java.io.File dumpFile,
java.io.File offsetFile)
|
GoedelObjectDumpBuilder(java.lang.String filenameBase)
Creates a GoedelObjectDump file for the given filename base (everything
but the extensions). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GoedelObjectDumpBuilder
public GoedelObjectDumpBuilder(java.lang.String filenameBase)
throws java.io.IOException
- Creates a GoedelObjectDump file for the given filename base (everything
but the extensions).
- Throws:
java.io.IOException
GoedelObjectDumpBuilder
public GoedelObjectDumpBuilder(java.io.File dumpFile,
java.io.File offsetFile)
throws java.io.IOException
- Throws:
java.io.IOException
appendObject
public void appendObject(long ID,
java.lang.Object victim)
throws java.io.IOException
- Throws:
java.io.IOException
appendBytes
public void appendBytes(long ID,
byte[] victimBytes)
throws java.io.IOException
- Throws:
java.io.IOException
clear
public void clear()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Closes the dump. You can reopen it by creating a new object or by calling
reset();
- Throws:
java.io.IOException
getCurrentSize
public int getCurrentSize()
reset
public void reset()
throws java.io.IOException
- Throws:
java.io.IOException