|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.beepcore.beep.util.BufferSegment
A BufferSegment represents a BEEP Frame payload and holds
the BEEP Frames's Header, Trailer and the message payload.
It contains a byte array an offset into the array and the
length from the offset.
| Constructor Summary | |
BufferSegment(byte[] data)
Constructor BufferSegment |
|
BufferSegment(byte[] data,
int offset,
int length)
Constructor BufferSegment |
|
| Method Summary | |
byte[] |
getData()
|
int |
getLength()
|
int |
getOffset()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BufferSegment(byte[] data)
data - A byte array containing a BEEP Frame payload.
public BufferSegment(byte[] data,
int offset,
int length)
data - A byte array containing a BEEP Frame payload.offset - Indicates the begining position of the BEEP Frame
payload in the byte array data.length - Number of valid bytes in the byte array starting from
offset.| Method Detail |
public byte[] getData()
public int getOffset()
public int getLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||