net.sourceforge.jpalm
Class DataBlock

java.lang.Object
  extended by net.sourceforge.jpalm.DataBlock
Direct Known Subclasses:
AbstractRecord, ApplicationInfo, FilterCriterion, Header, RecordHeader, RecordImpl, SortCriterion, SortInfo

public abstract class DataBlock
extends java.lang.Object

An abstract representation of a block of data in a file.


Constructor Summary
DataBlock()
           
 
Method Summary
abstract  void deserialize(byte[] data)
          Populate class properties from a byte array.
 boolean equals(java.lang.Object object)
           
abstract  byte[] serialize()
          Create a byte array of the class properties.
 java.lang.String toString()
          Gets the string representation of this class as a hexadecimal string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataBlock

public DataBlock()
Method Detail

deserialize

public abstract void deserialize(byte[] data)
Populate class properties from a byte array.

Parameters:
data - the byte array

serialize

public abstract byte[] serialize()
Create a byte array of the class properties.

Returns:
the byte array

toString

public java.lang.String toString()
Gets the string representation of this class as a hexadecimal string.

Overrides:
toString in class java.lang.Object
Returns:
a hexadecimal representation of this class

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object