|
|||||||||
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.RandomAccessPacketReader
public class RandomAccessPacketReader
Using the StaticHeader of a particular RawApplicationPackets item, read the contents using a random access style interface. This class used the various fields in the StaticHeader to access the packets held in the packet region. Note that this classes constructor is package private, and a method in each StaticHeader must be used to create it.
Field Summary | |
---|---|
private ApStorageArea |
apStorageArea
|
private PacketTrackerList |
packetTrackerList
|
private PacketFactoryI |
pf
|
private int |
position
|
private RDRAppIdList |
rdrAppIdList
|
private boolean |
state
|
private StaticHeader |
staticHeader
|
Constructor Summary | |
---|---|
RandomAccessPacketReader(PacketFactoryI packetFactory,
StaticHeader staticHeader)
Make a new reader by providing PacketFactory (some way to create new Packets) and the StaticHeader of interest |
Method Summary | |
---|---|
void |
close()
Close the AppId reader... |
private void |
next(int appId)
|
int |
open()
Open the StaticHeader |
int |
open(int appId)
Open the StaticHeader |
java.util.List<Packet> |
readNext()
Read next current position and increment to the next position |
java.util.List<Packet> |
readNext(int appId)
Read the AppId from the current position and increment to the next position |
void |
reset()
Reset the list back to zero |
int |
size()
Return the size or really number count of entries in the RDR Apid List that match appId |
int |
size(int appId)
Return the size or really number count of entries in the RDR Apid List that match appId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private PacketFactoryI pf
private StaticHeader staticHeader
private RDRAppIdList rdrAppIdList
private PacketTrackerList packetTrackerList
private ApStorageArea apStorageArea
private int position
private boolean state
Constructor Detail |
---|
RandomAccessPacketReader(PacketFactoryI packetFactory, StaticHeader staticHeader)
packetFactory
- a way to create new PacketsstaticHeader
- the StaticHeader from a RawApplicationsPackets of interestMethod Detail |
---|
private void next(int appId)
public int open() throws RtStpsException
RtStpsException
public int open(int appId) throws RtStpsException
RtStpsException
public java.util.List<Packet> readNext(int appId) throws RtStpsException
appId
- the application identifier of interest
RtStpsException
public java.util.List<Packet> readNext() throws RtStpsException
RtStpsException
public int size(int appId) throws RtStpsException
RtStpsException
public int size() throws RtStpsException
RtStpsException
public void reset()
public void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |