Class ArrayEncoder<E extends DBusType>

java.lang.Object
com.lucimber.dbus.codec.encoder.ArrayEncoder<E>
Type Parameters:
E - The element's data type.
All Implemented Interfaces:
Encoder<DBusArray<E>,ByteBuffer>

public final class ArrayEncoder<E extends DBusType> extends Object implements Encoder<DBusArray<E>,ByteBuffer>
An encoder which encodes an array to the D-Bus marshalling format using ByteBuffer.
See Also:
  • Constructor Details

    • ArrayEncoder

      public ArrayEncoder(ByteOrder order, DBusSignature signature)
      Constructs a new instance.
      Parameters:
      order - the byte order of the produced bytes
      signature - the array signature (must be an array)
  • Method Details