Class JsonGeneratorWithReferences

  • All Implemented Interfaces:
    com.fasterxml.jackson.core.Versioned, Closeable, Flushable, AutoCloseable

    public class JsonGeneratorWithReferences
    extends com.fasterxml.jackson.core.util.JsonGeneratorDelegate
    A JsonGenerator that can write object IDs and references.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.core.JsonGenerator

        com.fasterxml.jackson.core.JsonGenerator.Feature
    • Field Summary

      • Fields inherited from class com.fasterxml.jackson.core.util.JsonGeneratorDelegate

        delegate, delegateCopyMethods
      • Fields inherited from class com.fasterxml.jackson.core.JsonGenerator

        _cfgPrettyPrinter, DEFAULT_BINARY_WRITE_CAPABILITIES, DEFAULT_TEXTUAL_WRITE_CAPABILITIES, DEFAULT_WRITE_CAPABILITIES
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canWriteObjectId()  
      void writeObjectId​(Object id)  
      void writeObjectRef​(Object id)  
      • Methods inherited from class com.fasterxml.jackson.core.util.JsonGeneratorDelegate

        assignCurrentValue, canOmitFields, canUseSchema, canWriteBinaryNatively, canWriteFormattedNumbers, canWriteTypeId, close, copyCurrentEvent, copyCurrentStructure, currentValue, delegate, disable, enable, flush, getCharacterEscapes, getCodec, getCurrentValue, getDelegate, getFeatureMask, getHighestEscapedChar, getOutputBuffered, getOutputContext, getOutputTarget, getPrettyPrinter, getSchema, getWriteCapabilities, isClosed, isEnabled, overrideFormatFeatures, overrideStdFeatures, setCharacterEscapes, setCodec, setCurrentValue, setFeatureMask, setHighestNonEscapedChar, setPrettyPrinter, setRootValueSeparator, setSchema, useDefaultPrettyPrinter, version, writeArray, writeArray, writeArray, writeArray, writeBinary, writeBinary, writeBoolean, writeEmbeddedObject, writeEndArray, writeEndObject, writeFieldId, writeFieldName, writeFieldName, writeNull, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeObject, writeOmittedField, writePOJO, writeRaw, writeRaw, writeRaw, writeRaw, writeRaw, writeRawUTF8String, writeRawValue, writeRawValue, writeRawValue, writeStartArray, writeStartArray, writeStartArray, writeStartArray, writeStartObject, writeStartObject, writeStartObject, writeString, writeString, writeString, writeString, writeTree, writeTypeId, writeUTF8String
      • Methods inherited from class com.fasterxml.jackson.core.JsonGenerator

        _copyCurrentContents, _reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, configure, getFormatFeatures, isEnabled, writeArrayFieldStart, writeBinary, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeNullField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writePOJOField, writeRawValue, writeStringField, writeTypePrefix, writeTypeSuffix
    • Constructor Detail

      • JsonGeneratorWithReferences

        public JsonGeneratorWithReferences​(com.fasterxml.jackson.core.JsonGenerator d)
    • Method Detail

      • canWriteObjectId

        public boolean canWriteObjectId()
        Overrides:
        canWriteObjectId in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      • writeObjectId

        public void writeObjectId​(Object id)
                           throws IOException
        Overrides:
        writeObjectId in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
        Throws:
        IOException
      • writeObjectRef

        public void writeObjectRef​(Object id)
                            throws IOException
        Overrides:
        writeObjectRef in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
        Throws:
        IOException