|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Defines methods to read and write type-length encoded (TLE) fields.
| Method Summary | ||
void |
dumpField(int type,
DataBuffer db)
Retrieves field's data into buffer. |
|
boolean |
processField(int type,
int length,
DataBuffer db)
Processes the data in a field. |
|
| Method Detail |
public void dumpField(int type,
DataBuffer db)
Variable-length fields (such as one containing sub-fields) can implement this method to dump their entire contents into the provided data buffer.
type - Type of field from which to extract the data.db - Data buffer to contain the data extracted from the field; upon
return, write position in the buffer must be at the end of the field's
data.
public boolean processField(int type,
int length,
DataBuffer db)
throws IllegalArgumentException,
EOFException
type - Type byte of the field.length - Length of the field.db - DataBuffer containing the field's data; read position in the
buffer must be at the start of the data for the field.IllegalArgumentException - If data buffer and type don't match.EOFException - If end of buffer is reached before length read.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.