Class Symbol8TypeDecoder

All Implemented Interfaces:
SymbolTypeDecoder, PrimitiveTypeDecoder<Symbol>, StreamTypeDecoder<Symbol>, TypeDecoder<Symbol>

public final class Symbol8TypeDecoder extends AbstractSymbolTypeDecoder
Decoder of AMQP Symbol values from a byte stream.
  • Constructor Details

    • Symbol8TypeDecoder

      public Symbol8TypeDecoder()
  • Method Details

    • 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(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.