Class RawValue

java.lang.Object
com.fasterxml.jackson.databind.util.RawValue
All Implemented Interfaces:
JsonSerializable

public class RawValue extends Object implements JsonSerializable
Helper class used to encapsulate "raw values", pre-encoded textual content that can be output as opaque value with no quoting/escaping, using JsonGenerator.writeRawValue(String). It may be stored in TokenBuffer, as well as in Tree Model (JsonNode)
Since:
2.6
  • Field Details

    • _value

      protected Object _value
      Contents to serialize. Untyped because there are multiple types that are supported: String, JsonSerializable, SerializableString.
  • Constructor Details

    • RawValue

      public RawValue(String v)
    • RawValue

      public RawValue(com.fasterxml.jackson.core.SerializableString v)
    • RawValue

      public RawValue(JsonSerializable v)
    • RawValue

      protected RawValue(Object value, boolean bogus)
      Constructor that may be used by sub-classes, and allows passing value types other than ones for which explicit constructor exists. Caller has to take care that values of types not supported by base implementation are handled properly, usually by overriding some of existing serialization methods.
  • Method Details