All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.syncbuilder.storage.Block
java.lang.Object
   |
   +----com.syncbuilder.storage.Block

  Summary

public abstract class  Block
     extends java.lang.Object
     implements java.io.Serializable
{
          // Constructors 2
     public Block();
     public Block(byte[]);

          // Methods 5
     public String describe();
     public abstract void fill();
     public byte[] pack();
     public String toString();
     public void unpack(byte[]);
}

This is a superclass for all classes which need to parse formatted byte-data into object-attribute values and vice versa. The format of the byte-data is typically identical to the format that is natively used by some Palm device-application.


  Cross Reference

Extended By:
AppBlock, Pref, Record, Resource, SortBlock





  Constructors

· Block

Summary  |  Top
   public Block() 

Create an uninitialized Block. This no-arg constructor is also req'd for the externalization to work.



· Block

Summary  |  Top
   public Block(byte[] contents) 


  Methods

· fill

Summary  |  Top
   public abstract void fill() 


· pack

Summary  |  Top
   public byte[] pack() 

Turn the Block's attribute-values into a byte-array. The array can be used with unpack or for transfer to an application on the Pilot.

Returns:
the array of bytes

See Also: unpack



· unpack

Summary  |  Top
   public void unpack(byte[] data) 


· describe

Summary  |  Top
   public String describe() 


· toString

Summary  |  Top
   public String toString() 
Overrides:
toString in class Object


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7