All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface ORG.oclc.ber.DataDirObject

public interface 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.

Version:
@(#)DataDirObject.java 1.1 07/09/97

Method Index

 o clone()
Method to create a clone of the object.
 o length()
Method to get the length of the object.
 o toByteArray()
Method to convert the object to a byte array.
 o toString()
Method to convert the object to a String.

Methods

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

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

 o toString
 public abstract String toString()
Method to convert the object to a String.

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

Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index