Class RawBytes

java.lang.Object
com.arangodb.util.RawBytes
All Implemented Interfaces:
RawData

public final class RawBytes extends Object implements RawData
Helper class used to encapsulate raw value serialized as byte array. It can be used: - in serialization to append an already serialized raw value as is - in deserialization as target wrapper type for the raw value

No validation is performed, the user is responsible for providing a valid byte array for the used content type.

The raw value byte array can represent either: - a valid VPack - a valid JSON UTF-8 encoded string

The driver's InternalSerde supports serializing and deserializing to and from RawBytes.

  • Method Details

    • of

      public static RawBytes of(byte[] value)
    • get

      public byte[] get()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object