|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.output.hdf5.RDRAppIdItem
public class RDRAppIdItem
Read of write the AppIdItem from or to a StaticHeader
Field Summary | |
---|---|
private byte[] |
data
|
private java.lang.String |
name
|
private int |
offset
|
private int |
pktsReceived
|
private int |
pktsReserved
|
private int |
pktTrackerIndex
|
private static int |
size
|
private int |
value
|
Constructor Summary | |
---|---|
RDRAppIdItem(byte[] data,
int offset)
Constructor to create an RDRAppIdItem from a memory buffer, likely read from an HDF file. |
|
RDRAppIdItem(int appId,
int pktTrackerIndex,
int pktsReceived)
Constructor to create an RDRAppIdItem from passed in values, likely to be written to a memory buffer as define by the write() method, and then eventually to an HDF file. |
Method Summary | |
---|---|
static int |
getHDFSize()
Return the AppIdItem's size which is fixed |
java.lang.String |
getName()
Return the name |
int |
getPktsReceived()
Return the pktsReceived field |
int |
getPktsReserved()
Return the pktsReserved field |
int |
getPktTrackerIndex()
Return the pktTrackerIndex |
int |
getValue()
Return the value |
private void |
readName()
Read the name from a buffer to an internal field |
private void |
readPkstReceived()
Read the pktsReceived from a buffer to an internal field |
private void |
readPktsReserved()
Read the pktsReserved from a buffer to an internal field |
private void |
readPktTrackerIndex()
Read the pktTrackerIndex from a buffer to an internal field |
private void |
readValue()
Read the value from a buffer to an internal field |
int |
write(byte[] data,
int offset)
Write the contents of this object's fields to the specified data buffer, return the new offset |
private void |
writeName()
Write the name (the name associate with the application ID). |
private void |
writePkstReceived()
Write the pktsReceived, it is copied to a buffer. |
private void |
writePktsReserved()
Write the pktsReserved, it is copied to a buffer. |
private void |
writePktTrackerIndex()
Write the pktTrackerIndex, it is copied to a buffer. |
private void |
writeValue()
Write the value, it is copied to a buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
private int value
private int pktTrackerIndex
private int pktsReserved
private int pktsReceived
private static final int size
private byte[] data
private int offset
Constructor Detail |
---|
public RDRAppIdItem(int appId, int pktTrackerIndex, int pktsReceived)
appId
- the value fieldpktTrackerIndex
- the packet tracker indexpktsReceived
- the packets receivedpublic RDRAppIdItem(byte[] data, int offset)
data
- byte array that holds the dataoffset
- the offset into the arrayMethod Detail |
---|
public int write(byte[] data, int offset)
data
- the data buffer to be written tooffset
- the offset into the buffer
public java.lang.String getName()
String
public int getValue()
int
public int getPktTrackerIndex()
int
public int getPktsReserved()
int
public int getPktsReceived()
int
public static int getHDFSize()
int
private void writeName()
private void writeValue()
private void writePktTrackerIndex()
private void writePktsReserved()
private void writePkstReceived()
private void readName()
private void readValue()
private void readPktTrackerIndex()
private void readPktsReserved()
private void readPkstReceived()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |