com.partnersoft.io.formats.dump
Class GoedelObjectDump
java.lang.Object
com.partnersoft.io.formats.dump.GoedelObjectDump
public class GoedelObjectDump
- extends java.lang.Object
This is similar to the ObjectDump, except that it is indexed by
a (possibly nonsequential) long ID name rather than an integer ID.
It is a write-once read-many format; use GoedelObjectDumpBuilder to
make it and this to read it.
- Author:
- Paul Reavis
Copyright 2004 Partner Software, Inc.
|
Constructor Summary |
GoedelObjectDump(java.lang.String filenameBase)
Creates a GoedelObjectDump file pair. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GoedelObjectDump
public GoedelObjectDump(java.lang.String filenameBase)
throws java.io.IOException
- Creates a GoedelObjectDump file pair. Provide everyfor the given filename base (everything but the extensions).
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getSize
public int getSize()
readObject
public java.lang.Object readObject(long ID)
throws java.io.IOException
- Looks up the object by ID. Returns null if there is no match.
- Throws:
java.io.IOException
readID
public long readID(int index)
throws java.io.IOException
- Throws:
java.io.IOException
readBytes
public byte[] readBytes(int index)
throws java.io.IOException
- Throws:
java.io.IOException
readBytes
public void readBytes(int index,
ByteBuffer buffy)
throws java.io.IOException
- Throws:
java.io.IOException
readObject
public java.lang.Object readObject(int index)
throws java.io.IOException
- Throws:
java.io.IOException
clear
public void clear()
throws java.io.IOException
- Throws:
java.io.IOException