Class Symbol8TypeDecoder

    • Constructor Detail

      • Symbol8TypeDecoder

        public Symbol8TypeDecoder()
    • Method Detail

      • getTypeCode

        public int getTypeCode()
        Returns:
        the AMQP Encoding Code that this primitive type decoder can read.
      • readSize

        protected int readSize​(ProtonBuffer buffer)
                        throws DecodeException
        Description copied from class: AbstractSymbolTypeDecoder
        Subclasses must read the correct number of bytes from the buffer to determine the size of the encoded Symbol value.
        Specified by:
        readSize in class AbstractSymbolTypeDecoder
        Parameters:
        buffer - The buffer to read the size from.
        Returns:
        the number of bytes that make up the encoded Symbol value.
        Throws:
        DecodeException - if an error occurs reading the size value.
      • readSize

        protected int readSize​(java.io.InputStream stream)
                        throws DecodeException
        Description copied from class: AbstractSymbolTypeDecoder
        Subclasses must read the correct number of bytes from the buffer to determine the size of the encoded Symbol value.
        Specified by:
        readSize in class AbstractSymbolTypeDecoder
        Parameters:
        stream - The InputStream to read the size from.
        Returns:
        the number of bytes that make up the encoded Symbol value.
        Throws:
        DecodeException - if an error occurs reading the size value.