Package com.nt.udc.nar
Class NARKeyStorageFile
java.lang.Object
com.nt.udc.util.ObjectStorageFile
com.nt.udc.nar.NARKeyStorageFile
NARKeyStorageFile
Todd Fuller - 1/11/2001
This class handles NARKey objects in an ObjectStorageFile.
-
Field Summary
Fields inherited from class com.nt.udc.util.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
objectFromBytes
(byte[] bytes) This method should return an Object, as created by the given bytes.protected byte[]
objectToBytes
(Object obj) This method should return the Object in its byte[] format.Methods inherited from class com.nt.udc.util.ObjectStorageFile
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
-
Constructor Details
-
NARKeyStorageFile
-
-
Method Details
-
objectFromBytes
Description copied from class:ObjectStorageFile
This method should return an Object, as created by the given bytes. If, for whatever reason, the Object could not be created from these bytes, this method should return null.- Specified by:
objectFromBytes
in classObjectStorageFile
- Parameters:
bytes
- byte[] used to create the Object- Returns:
- A valid Object, created from the bytes.
-
objectToBytes
Description copied from class:ObjectStorageFile
This method should return the Object in its byte[] format.- Specified by:
objectToBytes
in classObjectStorageFile
- Parameters:
obj
- Object to convert to bytes.- Returns:
- bytes of the Object
-