Package com.lucimber.dbus.codec.decoder
Class VariantDecoder
java.lang.Object
com.lucimber.dbus.codec.decoder.VariantDecoder
- All Implemented Interfaces:
Decoder<ByteBuffer,DBusVariant>
A decoder which unmarshals a variant from the byte stream format used by D-Bus.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(ByteBuffer buffer, int offset) Decodes a specific type from a buffer.
-
Constructor Details
-
VariantDecoder
public VariantDecoder()
-
-
Method Details
-
decode
Description copied from interface:DecoderDecodes a specific type from a buffer.- Specified by:
decodein interfaceDecoder<ByteBuffer,DBusVariant> - 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.
-