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
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.JsonSerializable

    JsonSerializable.Base
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Object
    Contents to serialize.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    RawValue(com.fasterxml.jackson.core.SerializableString v)
     
     
     
    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.
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    _serialize(com.fasterxml.jackson.core.JsonGenerator gen)
     
    boolean
     
    int
     
    Accessor for returning enclosed raw value in whatever form it was created in (usually String, {link SerializableString}, or any JsonSerializable).
    void
    serialize(com.fasterxml.jackson.core.JsonGenerator gen)
     
    void
    serialize(com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider serializers)
    Serialization method called when no additional type information is to be included in serialization.
    void
    serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer)
    Serialization method called when additional type information is expected to be included in serialization, for deserialization to use.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait