com.ibm.manplato.Protocol.Util.StdApps
Class AppBlock

java.lang.Object
  |
  +--com.ibm.manplato.Protocol.Util.DLPBlock
        |
        +--com.ibm.manplato.Protocol.Util.StdApps.AppBlock
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AddressAppBlock, DateBookAppBlock, ExpenseAppBlock, MailAppBlock, MemoAppBlock, ToDoListAppBlock

public class AppBlock
extends DLPBlock

This class represents the common Application block Contains all the categories and category handling functions.

Version:
$Rev$-$Date: 2001/05/14 10:46:04 $$State: Exp $
Author:
File Created By: Ferenc PAL <fpal@hu.ibm.com>, Last Modified By: $Author: fpal $
See Also:
Serialized Form

Field Summary
protected  byte[] appData
           
static int CATEGORY_BLOCK_LENGTH
           
static byte MAX_CATEGORIES
           
 
Fields inherited from class com.ibm.manplato.Protocol.Util.DLPBlock
blockSize, data
 
Constructor Summary
AppBlock()
           
AppBlock(DLPBlock block)
           
 
Method Summary
protected  void generateData()
           
 CategoryInfo getCategoryInfo(int index)
           
 byte[] getData()
           
 byte getLastUniqueID()
           
 void setCategoryInfo(CategoryInfo categoryinfo, int index)
           
 void setLastUniqueID(byte newLastUniqueID)
           
 java.lang.String toString()
           
 
Methods inherited from class com.ibm.manplato.Protocol.Util.DLPBlock
getBlockSize
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CATEGORY_BLOCK_LENGTH

public static final int CATEGORY_BLOCK_LENGTH

MAX_CATEGORIES

public static final byte MAX_CATEGORIES

appData

protected byte[] appData
Constructor Detail

AppBlock

public AppBlock()
Parameters:
data - byte[]

AppBlock

public AppBlock(DLPBlock block)
Parameters:
data - byte[]
Method Detail

generateData

protected void generateData()

getCategoryInfo

public CategoryInfo getCategoryInfo(int index)
Returns:
CategoryInfo

getData

public byte[] getData()
Overrides:
getData in class DLPBlock
Returns:
byte[]

getLastUniqueID

public byte getLastUniqueID()
Returns:
byte

setCategoryInfo

public void setCategoryInfo(CategoryInfo categoryinfo,
                            int index)

setLastUniqueID

public void setLastUniqueID(byte newLastUniqueID)
Parameters:
newLastUniqueID - byte

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
java.lang.String