Package com.lucimber.dbus.codec.decoder
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 TypeMethodDescriptionDecodes a specific type from a buffer.
-
Method Details
-
decode
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.
-