The methods of the FileObjectBlock class are listed below. For a complete list of FileObjectBlock class members, see the FileObjectBlock Members topic.
dispose | This method is called when the Block is no longer needed and should be considered a FREE BLOCK, to be reused. This method will not reduce the size of the store file. This method will dispose the next block if one is allocated. |
Equals | Overrides Object.equals(Object). This makes the FileObjectStore and the local index an equivalence relation. |
GetHashCode | Overrides Object.hashCode(). Uses the hashcode of the String constructed using the FileObjectStore and the local index. |
GetType (inherited from Object) | |
isFreeBlock | This method reads the dirty flag in the store file for this Block and returns true if it reports itself to be FREE. |
readHeader | This method returns the Object stored in the header of this block. If the Object's size exceeds the fixed size of the header, it may not be unserializable. If no object was found or it could not be unserialized, null is returned. |
readObject | This method reads the Object stored in the body of this Block. If the Object's data exceeds the size of this Block, the next block(s) in the chain will be read from until the entire Object has been reconstructed. If the Object could not be read, null will be returned. |
ToString (inherited from Object) | |
updateFromFile | This method updates all the local instance fields from information stored in the file. |
writeHeader | This method writes an Object in the header of this Block. If the object was successfully written, TRUE will be returned. |
writeObject | This method stores an Object in the body of this Block. If the Object's size exceeds the length of this Block, a new block will be allocated to store the remaining bytes. If the Object was successfully written, true will be returned. |
debug | |
error | Overloaded. |
Finalize | Overrides Object.finalize(). This method makes sure that the store is unreferenced. |
format | This method writes the physical space of the store file so that Objects can be written and read from this Block. Doing this after writing information to this Block will destroy the previous data. This method also writes the dirty flag to the HEADER_TAG of this block's header, allowing it to be reused. |
MemberwiseClone (inherited from Object) | |
print |
FileObjectBlock Class | com.neokernel.om Namespace | FileObjectStore