| com.pnfsoftware.jeb.core.units.IBinaryFrames |
Binary frames are used to serialize list of byte arrays into a single byte array.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract IBinaryFrames |
add(byte[] data)
Add a frame to the object.
| ||||||||||
| abstract int |
count()
Determine the number of frames in this object.
| ||||||||||
| abstract byte[] |
get(int index)
Read the frame at the given position.
| ||||||||||
| abstract byte[] |
pull(int index)
Extract the frame at the given position.
| ||||||||||
| abstract byte[] |
pullCurrent()
Extract the frame at offset 0.
| ||||||||||
| abstract byte[] |
toBytes()
Serialize the object to a byte array representing the list of frames.
| ||||||||||
Add a frame to the object.
| data | the data frame to add |
|---|
Determine the number of frames in this object.
Read the frame at the given position. Throws if index is out of range.
| index | frame index |
|---|
Extract the frame at the given position. Calling method effectively decrements the number of frames contained in this object. Throws if index is out of range.
| index | frame index |
|---|
Extract the frame at offset 0. Throws if index is out of range.
Serialize the object to a byte array representing the list of frames.