Class RawJson

java.lang.Object
ru.tinkoff.kora.json.common.RawJson
All Implemented Interfaces:
com.fasterxml.jackson.core.SerializableString

public class RawJson extends Object implements com.fasterxml.jackson.core.SerializableString
  • Field Details

    • value

      public final byte[] value
  • Constructor Details

    • RawJson

      public RawJson(@Nonnull String value)
    • RawJson

      public RawJson(@Nonnull byte[] value)
  • Method Details

    • value

      public byte[] value()
    • getValue

      public String getValue()
      Specified by:
      getValue in interface com.fasterxml.jackson.core.SerializableString
    • charLength

      public int charLength()
      Specified by:
      charLength in interface com.fasterxml.jackson.core.SerializableString
    • asQuotedChars

      public char[] asQuotedChars()
      Specified by:
      asQuotedChars in interface com.fasterxml.jackson.core.SerializableString
    • asUnquotedUTF8

      public byte[] asUnquotedUTF8()
      Specified by:
      asUnquotedUTF8 in interface com.fasterxml.jackson.core.SerializableString
    • asQuotedUTF8

      public byte[] asQuotedUTF8()
      Specified by:
      asQuotedUTF8 in interface com.fasterxml.jackson.core.SerializableString
    • appendQuotedUTF8

      public int appendQuotedUTF8(byte[] buffer, int offset)
      Specified by:
      appendQuotedUTF8 in interface com.fasterxml.jackson.core.SerializableString
    • appendQuoted

      public int appendQuoted(char[] buffer, int offset)
      Specified by:
      appendQuoted in interface com.fasterxml.jackson.core.SerializableString
    • appendUnquotedUTF8

      public int appendUnquotedUTF8(byte[] buffer, int offset)
      Specified by:
      appendUnquotedUTF8 in interface com.fasterxml.jackson.core.SerializableString
    • appendUnquoted

      public int appendUnquoted(char[] buffer, int offset)
      Specified by:
      appendUnquoted in interface com.fasterxml.jackson.core.SerializableString
    • writeQuotedUTF8

      public int writeQuotedUTF8(OutputStream out) throws IOException
      Specified by:
      writeQuotedUTF8 in interface com.fasterxml.jackson.core.SerializableString
      Throws:
      IOException
    • writeUnquotedUTF8

      public int writeUnquotedUTF8(OutputStream out) throws IOException
      Specified by:
      writeUnquotedUTF8 in interface com.fasterxml.jackson.core.SerializableString
      Throws:
      IOException
    • putQuotedUTF8

      public int putQuotedUTF8(ByteBuffer buffer) throws IOException
      Specified by:
      putQuotedUTF8 in interface com.fasterxml.jackson.core.SerializableString
      Throws:
      IOException
    • putUnquotedUTF8

      public int putUnquotedUTF8(ByteBuffer buffer) throws IOException
      Specified by:
      putUnquotedUTF8 in interface com.fasterxml.jackson.core.SerializableString
      Throws:
      IOException