Interface Decoder<BufferT,ValueT extends DBusType>

Type Parameters:
BufferT - The data type of the buffer.
ValueT - The decoded data type.
All Known Implementing Classes:
ArrayDecoder, BooleanDecoder, ByteDecoder, DictDecoder, DictEntryDecoder, DoubleDecoder, Int16Decoder, Int32Decoder, Int64Decoder, ObjectPathDecoder, SignatureDecoder, StringDecoder, StructDecoder, UInt16Decoder, UInt32Decoder, UInt64Decoder, UnixFdDecoder, VariantDecoder

public interface Decoder<BufferT,ValueT extends DBusType>
Decodes marshalled D-Bus data types.
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(BufferT buffer, int offset)
    Decodes a specific type from a buffer.
  • Method Details

    • decode

      DecoderResult<ValueT> decode(BufferT buffer, int offset) throws DecoderException
      Decodes a specific type from a buffer.
      Parameters:
      buffer - The buffer that contains the marshalled type.
      offset - The number of bytes of a message, that have already been decoded.
      Returns:
      The result of the decoding procedure.
      Throws:
      DecoderException - If the value could not be decoded successfully.