Class NARKeyStorageFile

java.lang.Object
com.nt.udc.util.ObjectStorageFile
com.nt.udc.nar.NARKeyStorageFile

public class NARKeyStorageFile extends ObjectStorageFile
NARKeyStorageFile Todd Fuller - 1/11/2001 This class handles NARKey objects in an ObjectStorageFile.
  • Constructor Details

    • NARKeyStorageFile

      public NARKeyStorageFile(int count, File fileName, boolean newTable)
  • Method Details

    • objectFromBytes

      protected Object objectFromBytes(byte[] bytes)
      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 class ObjectStorageFile
      Parameters:
      bytes - byte[] used to create the Object
      Returns:
      A valid Object, created from the bytes.
    • objectToBytes

      protected byte[] objectToBytes(Object obj)
      Description copied from class: ObjectStorageFile
      This method should return the Object in its byte[] format.
      Specified by:
      objectToBytes in class ObjectStorageFile
      Parameters:
      obj - Object to convert to bytes.
      Returns:
      bytes of the Object