Open SiteSearch 4.1.1
Final

ORG.oclc.ber
Interface DataDirObject


public abstract interface DataDirObject

DataDirObject is an interface that allows various types of objects to be stored in a DataDir. The DataDir class provides methods for storing and retrieving bitstrings, byte arrays, Strings, numbers, and OIDs (Object Identifier from Z39.50). If you want 1) to store an object of an additional type and 2) do not want to convert that object to a byte array or String then implement the object from this interface. Use daddObj() to insert the object into a DataDir. The implemented object will need a method to convert a byte array back into the object since a DataDir built from a BerString only has byte arrays.


Method Summary
 Object clone()
          Method to create a clone of the object.
 int length()
          Method to get the length of the object.
 byte[] toByteArray()
          Method to convert the object to a byte array.
 String toString()
          Method to convert the object to a String.
 

Method Detail

toByteArray

public byte[] toByteArray()
Method to convert the object to a byte array.

length

public int length()
Method to get the length of the object.

toString

public String toString()
Method to convert the object to a String.
Overrides:
toString in class Object

clone

public Object clone()
Method to create a clone of the object.
Overrides:
clone in class Object

Open SiteSearch 4.1.1
Final