|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
behavior of a field at a fixed location within a byte array
Method Summary | |
void |
readFromBytes(byte[] data)
set the value from its offset into an array of bytes |
void |
readFromStream(java.io.InputStream stream)
set the value from an InputStream |
java.lang.String |
toString()
return the value as a String |
void |
writeToBytes(byte[] data)
write the value out to an array of bytes at the appropriate offset |
Method Detail |
public void readFromBytes(byte[] data) throws java.lang.ArrayIndexOutOfBoundsException
data
- the byte array from which the value is to be readjava.lang.ArrayIndexOutOfBoundsException
- if the offset is out
of the array's valid index rangepublic void readFromStream(java.io.InputStream stream) throws java.io.IOException, LittleEndian.BufferUnderrunException
stream
- the InputStream from which the value is to be
readBufferUnderrunException
- if there is not enough data
available from the InputStreamjava.io.IOException
- if an IOException is thrown from reading
the InputStreampublic void writeToBytes(byte[] data) throws java.lang.ArrayIndexOutOfBoundsException
data
- the array of bytes to which the value is to be
writtenjava.lang.ArrayIndexOutOfBoundsException
- if the offset is out
of the array's valid index rangepublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |