Class CfdpPacketInputStream

  • All Implemented Interfaces:
    PacketInputStream

    public class CfdpPacketInputStream
    extends Object
    implements PacketInputStream
    CFDP packet reader that splits the stream into packets based on the length of the packet
    • Constructor Detail

      • CfdpPacketInputStream

        public CfdpPacketInputStream​(InputStream inputStream)
    • Method Detail

      • readPacket

        public byte[] readPacket()
                          throws IOException
        Description copied from interface: PacketInputStream
        read the next packet - blocking if necessary until all the data is available.
        Specified by:
        readPacket in interface PacketInputStream
        Returns:
        the next packet read from the input stream.
        Throws:
        EOFException - if this input stream reaches the end.
        IOException - an I/O error has occurred