Interface RawValue

    • Method Detail

      • asByteArray

        byte[] asByteArray()
        Returns the value as byte[].

        This method copies the byte array.

      • asByteBuffer

        java.nio.ByteBuffer asByteBuffer()
        Returns the value as ByteBuffer.

        Returned ByteBuffer is read-only. See also ByteBuffer.asReadOnlyBuffer(). This method doesn't copy the byte array as much as possible.

      • asString

        java.lang.String asString()
        Returns the value as String.

        This method throws an exception if the value includes invalid UTF-8 byte sequence.

        Throws:
        MessageStringCodingException - If this value includes invalid UTF-8 byte sequence.
      • toString

        java.lang.String toString()
        Returns the value as String.

        This method replaces an invalid UTF-8 byte sequence with U+FFFD replacement character.

        Overrides:
        toString in class java.lang.Object