|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Entity
Represents a record or field.
| Method Summary | |
|---|---|
Entity |
clone()
Clone oneself. |
void |
fill(byte b)
Fill this entity's value with all b. |
byte[] |
getValue()
Get the value of this Entity. |
byte[] |
getValue(int offset,
int length)
Get a subset of this Entity's value. |
int |
length()
Get the length of this Entity. |
void |
readFrom(InputStream is)
Read value from an InputStream. |
void |
setValue(byte[] b)
Set this Entity's value. |
void |
setValue(byte[] b,
int offset,
int length)
Set this Entity's value to a subset of the specified byte[]. |
void |
writeTo(OutputStream os)
Write value to an OutputStream. |
| Method Detail |
|---|
int length()
void readFrom(InputStream is)
throws IOException
is - to read
IOException - on error
void writeTo(OutputStream os)
throws IOException
os - to write to
IOException - on errorEntity clone()
void fill(byte b)
throws IOException
b.
b - value
IOException - on errorbyte[] getValue()
byte[] getValue(int offset,
int length)
offset - to startlength - to extend
void setValue(byte[] b)
b - byte[]
void setValue(byte[] b,
int offset,
int length)
b - byte[]offset - intlength - int
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||