Package org.yamcs.tctm
Interface PacketInputStream
-
- All Known Implementing Classes:
CcsdsPacketInputStream,CfdpPacketInputStream,GenericPacketInputStream
public interface PacketInputStreamInterface implemented by the classes that read packets from an input stream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]readPacket()read the next packet - blocking if necessary until all the data is available.
-
-
-
Method Detail
-
readPacket
byte[] readPacket() throws IOException, PacketTooLongExceptionread the next packet - blocking if necessary until all the data is available.- Returns:
- the next packet read from the input stream.
- Throws:
EOFException- if this input stream reaches the end.IOException- an I/O error has occurredPacketTooLongException- if a packet read is longer than a defined limit
-
-