public class NARStorageFile extends ObjectStorageFile
allocator, currentStorageSize, headers, headers_no_flag, invalid_flags, INVALID_OBJ, MAX_PARTITION_SIZE, maxPartitionSize, OBJ_HEADER, objectFile, partitioned, time_used, valid_flags, VALID_OBJ
Constructor and Description |
---|
NARStorageFile(int count,
java.io.File fileName,
boolean newTable) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
getDataToBytes(int narLength) |
protected byte[] |
getObjectBytes() |
static void |
main(java.lang.String[] args)
Prints out the NAR's in a NARStorageFile to standard out.
|
protected java.lang.Object |
objectFromBytes(byte[] bytes)
This method should return an Object, as created by the given
bytes.
|
protected byte[] |
objectToBytes(java.lang.Object obj)
This method should return the Object in its byte[] format.
|
protected int |
skipObjectBytes() |
add, addBytes, allocatorReport, close, drop, get, getBytes, getNumObjects, getObjectFile, getSomeObjects, getValidOffsets, isEmpty, isNewFile, markDeletedBytes, open, remove, removeBytes, removeDelayedParsing, restoreFile, setPartition, setupWalker, setupWalker, toString, toString, update, walkFile
public NARStorageFile(int count, java.io.File fileName, boolean newTable)
protected byte[] getObjectBytes() throws java.io.IOException
java.io.IOException
protected byte[] getDataToBytes(int narLength) throws java.io.IOException
java.io.IOException
protected int skipObjectBytes() throws java.io.IOException
java.io.IOException
protected java.lang.Object objectFromBytes(byte[] bytes)
ObjectStorageFile
objectFromBytes
in class ObjectStorageFile
bytes
- byte[] used to create the Objectprotected byte[] objectToBytes(java.lang.Object obj)
ObjectStorageFile
objectToBytes
in class ObjectStorageFile
obj
- Object to convert to bytes.public static void main(java.lang.String[] args)