|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jSyncManager.API.Protocol.Util.DLPResource
A class to store a handheld database resource. This class holds a single data resource.
Field Summary | |
---|---|
static byte |
DELETE_ALL
A flag to denote that all resources should be deleted during a delete operation. |
Constructor Summary | |
---|---|
(package private) |
DLPResource()
Construct a new Resource object with null/zeroed values. |
|
DLPResource(byte[] inData)
Create a new Resource object based on the provided resource byte array. |
Method Summary | |
---|---|
byte[] |
getData()
Retreives the data portion of the resource. |
char |
getIndex()
Retreives the index of the resource. |
char |
getResourceID()
Retreives the ID number associated with this resource. |
char |
getResourceSize()
Retreives the size of this resource. |
int |
getResourceType()
Retreives the type of this resource. |
java.lang.String |
getResourceTypeString()
Retreives the String representing this resources type value. |
void |
setData(byte[] data)
Sets the data array for this resource. |
void |
setIndex(char i)
Sets the index value to be associated with this resource. |
void |
setResourceID(char id)
Sets the resource ID to be associated with this resource. |
void |
setResourceSize(char size)
Sets the size of this resource. |
void |
setResourceType(int i)
Sets this resources type. |
Methods inherited from class java.lang.Object |
---|
|
Field Detail |
public static final byte DELETE_ALL
JHotSync.deleteResource(byte, byte, int, char)
Constructor Detail |
DLPResource()
public DLPResource(byte[] inData) throws DLPFunctionCallException
data
- a byte array from the handheld representing a resource.DLPFunctionCallException
- thrown if there are any parsing errors.Method Detail |
public byte[] getData()
public char getIndex()
public char getResourceID()
public char getResourceSize()
public int getResourceType()
public java.lang.String getResourceTypeString()
public void setData(byte[] data)
data
- the data array for this resource.public void setIndex(char i)
i
- the index value for this resource.public void setResourceID(char id)
id
- the resource ID number for this resource.public void setResourceSize(char size)
size
- the size of this resource.public void setResourceType(int i)
this
- resources type.
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |