Class InputStreamEncodedMessage

  • All Implemented Interfaces:
    EncodedMessage

    public class InputStreamEncodedMessage
    extends AbstractEncodedMessage
    Encoded message from an input stream.
    Since:
    11.0
    Author:
    Luc Maisonobe
    • Constructor Detail

      • InputStreamEncodedMessage

        public InputStreamEncodedMessage​(InputStream stream)
        Simple constructor.
        Parameters:
        stream - input stream providing the message
    • Method Detail

      • fetchByte

        protected int fetchByte()
        Fetch the next byte from the message.
        Specified by:
        fetchByte in class AbstractEncodedMessage
        Returns:
        next byte from the message, as a primitive integer, or -1 if end of data has been reached