|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--brf.j2me.dynaworks.db.RecordField
Defines the base class of a record field.
Record,
StringField,
IntegerField,
BytesField,
ShortField| Field Summary | |
protected int |
size
'byte' length of the field data. |
| Constructor Summary | |
RecordField()
|
|
| Method Summary | |
boolean |
fromImage(byte[] m)
Convert a byte array into field data. |
int |
getExpectedSize(byte[] data,
int pos)
returns the expected length of a field starting at position 'pos' in the byte array 'data'. |
int |
getSize()
Return the size of a record field. |
byte[] |
toImage()
Convert the field data into a byte array. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected int size
| Constructor Detail |
public RecordField()
| Method Detail |
public int getSize()
public int getExpectedSize(byte[] data,
int pos)
data - byte[] - byte representation of record.pos - int - offset into arraypublic byte[] toImage()
public boolean fromImage(byte[] m)
m - byte[] - array holding the data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||