Package org.yamcs.tctm
Class UsocPacketInputStream
- java.lang.Object
-
- org.yamcs.tctm.UsocPacketInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable,PacketInputStream
@Deprecated public class UsocPacketInputStream extends Object implements PacketInputStream
Deprecated.Plays files in PaCTS format, HRDP format or containing raw CCSSDS ISS packets.Used in the context of ISS/Columbus ground control; it should eventually be removed from the Yamcs core.
-
-
Field Summary
Fields Modifier and Type Field Description protected InputStreaminputStreamDeprecated.
-
Constructor Summary
Constructors Constructor Description UsocPacketInputStream()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.voidinit(InputStream inputStream, YConfiguration args)Deprecated.Called each time an input stream is opened to initialize the objectbyte[]readPacket()Deprecated.read the next packet - blocking if necessary until all the data is available.
-
-
-
Field Detail
-
inputStream
protected InputStream inputStream
Deprecated.
-
-
Method Detail
-
init
public void init(InputStream inputStream, YConfiguration args)
Deprecated.Description copied from interface:PacketInputStreamCalled each time an input stream is opened to initialize the object- Specified by:
initin interfacePacketInputStream
-
readPacket
public byte[] readPacket() throws IOException, PacketTooLongExceptionDeprecated.Description copied from interface:PacketInputStreamread the next packet - blocking if necessary until all the data is available.- Specified by:
readPacketin interfacePacketInputStream- 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
-
close
public void close() throws IOExceptionDeprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-