|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.ccsds.path.SplitHeader
final class SplitHeader
This class contains a CCSDS packet header. I use this class to assemble a packet header that is split across two frames.
Field Summary | |
---|---|
private FrameAnnotation |
frameAnnotation
This is the frame annotation from the frame that contributed the first half of the split header. |
private byte[] |
header
|
private int |
index
|
Constructor Summary | |
---|---|
SplitHeader()
|
Method Summary | |
---|---|
(package private) void |
begin(PacketZone zone,
FrameAnnotation frameAnnotation)
Begin a split packet header by moving the remaining bytes from the packet zone, which must be less that 6 bytes, to this split header container. |
(package private) void |
clear()
Discard any bytes contained in this packet header. |
(package private) int |
finish(PacketZone zone)
Finish a split header by moving a few bytes from the packet zone to end of this packet header. |
(package private) byte[] |
getData()
Get the bytes in the packet header. |
(package private) int |
getFilledCount()
Get the number of bytes already filled. |
FrameAnnotation |
getFrameAnnotation()
Get the frame annotation from the frame that contributed the first half of the split header. |
(package private) int |
getToFill()
Get the number of bytes yet to fill in this split packet header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private byte[] header
private int index
private FrameAnnotation frameAnnotation
Constructor Detail |
---|
SplitHeader()
Method Detail |
---|
final void clear()
final byte[] getData()
final int getToFill()
final int getFilledCount()
public FrameAnnotation getFrameAnnotation()
final void begin(PacketZone zone, FrameAnnotation frameAnnotation)
final int finish(PacketZone zone)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |