Class JsonGeneratorAdapter

    • Nested Class Summary

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

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

      Fields 
      Modifier and Type Field Description
      protected org.bson.UuidRepresentation uuidRepresentation  
      protected org.bson.BsonWriter writer  
      • Fields inherited from class com.fasterxml.jackson.core.base.GeneratorBase

        _cfgNumbersAsStrings, _closed, _features, _ioContext, _objectCodec, _writeContext, DERIVED_FEATURES_MASK, MAX_BIG_DECIMAL_SCALE, SURR1_FIRST, SURR1_LAST, SURR2_FIRST, SURR2_LAST, WRITE_BINARY, WRITE_BOOLEAN, WRITE_NULL, WRITE_NUMBER, WRITE_RAW, WRITE_STRING
      • Fields inherited from class com.fasterxml.jackson.core.JsonGenerator

        _cfgPrettyPrinter, DEFAULT_BINARY_WRITE_CAPABILITIES, DEFAULT_TEXTUAL_WRITE_CAPABILITIES, DEFAULT_WRITE_CAPABILITIES
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected JsonGeneratorAdapter​(int features, com.fasterxml.jackson.core.ObjectCodec codec, com.fasterxml.jackson.core.json.JsonWriteContext ctxt, org.bson.BsonWriter writer, org.bson.UuidRepresentation uuidRepresentation)  
      protected JsonGeneratorAdapter​(int features, com.fasterxml.jackson.core.ObjectCodec codec, org.bson.BsonWriter writer, org.bson.UuidRepresentation uuidRepresentation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void _releaseBuffers()  
      protected void _verifyValueWrite​(String typeMsg)  
      void flush()  
      void writeBinary​(com.fasterxml.jackson.core.Base64Variant bv, byte[] data, int offset, int len)  
      void writeBoolean​(boolean state)  
      void writeBsonObjectId​(org.bson.types.ObjectId objectId)  
      void writeBsonValue​(org.bson.BsonValue value)  
      void writeEndArray()  
      void writeEndObject()  
      void writeFieldName​(String name)  
      void writeNull()  
      void writeNumber​(double v)  
      void writeNumber​(float v)  
      void writeNumber​(int v)  
      void writeNumber​(long v)  
      void writeNumber​(String encodedValue)  
      void writeNumber​(BigDecimal v)  
      void writeNumber​(BigInteger v)  
      void writeRaw​(char c)  
      void writeRaw​(char[] text, int offset, int len)  
      void writeRaw​(String text)  
      void writeRaw​(String text, int offset, int len)  
      void writeRawUTF8String​(byte[] text, int offset, int length)  
      void writeStartArray()  
      void writeStartObject()  
      void writeString​(char[] text, int offset, int len)  
      void writeString​(String text)  
      void writeUTF8String​(byte[] text, int offset, int length)  
      • Methods inherited from class com.fasterxml.jackson.core.base.GeneratorBase

        _asString, _checkRangeBoundsForByteArray, _checkRangeBoundsForCharArray, _checkRangeBoundsForString, _checkStdFeatureChanges, _constructDefaultPrettyPrinter, _decodeSurrogate, close, disable, enable, getCodec, getCurrentValue, getFeatureMask, getOutputContext, isClosed, isEnabled, overrideStdFeatures, setCodec, setCurrentValue, setFeatureMask, useDefaultPrettyPrinter, version, writeBinary, writeFieldName, writeObject, writeRawValue, writeRawValue, writeRawValue, writeRawValue, writeStartObject, writeString, writeTree
      • Methods inherited from class com.fasterxml.jackson.core.JsonGenerator

        _copyCurrentContents, _copyCurrentFloatValue, _copyCurrentFloatValueExact, _copyCurrentIntValue, _copyCurrentStringValue, _reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, assignCurrentValue, canOmitFields, canUseSchema, canWriteBinaryNatively, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, configure, copyCurrentEvent, copyCurrentEventExact, copyCurrentStructure, currentValue, getCharacterEscapes, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getOutputTarget, getPrettyPrinter, getSchema, getWriteCapabilities, isEnabled, overrideFormatFeatures, setCharacterEscapes, setHighestNonEscapedChar, setPrettyPrinter, setRootValueSeparator, setSchema, streamWriteConstraints, writeArray, writeArray, writeArray, writeArray, writeArrayFieldStart, writeBinary, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeEmbeddedObject, writeFieldId, writeNullField, writeNumber, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeObjectId, writeObjectRef, writeOmittedField, writePOJO, writePOJOField, writeRaw, writeStartArray, writeStartArray, writeStartArray, writeStartObject, writeString, writeStringField, writeTypeId, writeTypePrefix, writeTypeSuffix
    • Field Detail

      • writer

        protected final org.bson.BsonWriter writer
      • uuidRepresentation

        protected final org.bson.UuidRepresentation uuidRepresentation
    • Constructor Detail

      • JsonGeneratorAdapter

        protected JsonGeneratorAdapter​(int features,
                                       com.fasterxml.jackson.core.ObjectCodec codec,
                                       org.bson.BsonWriter writer,
                                       org.bson.UuidRepresentation uuidRepresentation)
      • JsonGeneratorAdapter

        protected JsonGeneratorAdapter​(int features,
                                       com.fasterxml.jackson.core.ObjectCodec codec,
                                       com.fasterxml.jackson.core.json.JsonWriteContext ctxt,
                                       org.bson.BsonWriter writer,
                                       org.bson.UuidRepresentation uuidRepresentation)
    • Method Detail

      • writeStartArray

        public void writeStartArray()
                             throws IOException
        Specified by:
        writeStartArray in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeEndArray

        public void writeEndArray()
                           throws IOException
        Specified by:
        writeEndArray in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeStartObject

        public void writeStartObject()
                              throws IOException
        Specified by:
        writeStartObject in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeEndObject

        public void writeEndObject()
                            throws IOException
        Specified by:
        writeEndObject in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeFieldName

        public void writeFieldName​(String name)
                            throws IOException
        Specified by:
        writeFieldName in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeString

        public void writeString​(String text)
                         throws IOException
        Specified by:
        writeString in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeString

        public void writeString​(char[] text,
                                int offset,
                                int len)
                         throws IOException
        Specified by:
        writeString in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeRawUTF8String

        public void writeRawUTF8String​(byte[] text,
                                       int offset,
                                       int length)
                                throws IOException
        Specified by:
        writeRawUTF8String in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeUTF8String

        public void writeUTF8String​(byte[] text,
                                    int offset,
                                    int length)
                             throws IOException
        Specified by:
        writeUTF8String in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeRaw

        public void writeRaw​(String text)
                      throws IOException
        Specified by:
        writeRaw in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeRaw

        public void writeRaw​(String text,
                             int offset,
                             int len)
                      throws IOException
        Specified by:
        writeRaw in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeRaw

        public void writeRaw​(char[] text,
                             int offset,
                             int len)
                      throws IOException
        Specified by:
        writeRaw in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeRaw

        public void writeRaw​(char c)
                      throws IOException
        Specified by:
        writeRaw in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeBinary

        public void writeBinary​(com.fasterxml.jackson.core.Base64Variant bv,
                                byte[] data,
                                int offset,
                                int len)
                         throws IOException
        Specified by:
        writeBinary in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeNumber

        public void writeNumber​(int v)
                         throws IOException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeNumber

        public void writeNumber​(long v)
                         throws IOException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeNumber

        public void writeNumber​(BigInteger v)
                         throws IOException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeNumber

        public void writeNumber​(double v)
                         throws IOException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeNumber

        public void writeNumber​(float v)
                         throws IOException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeNumber

        public void writeNumber​(BigDecimal v)
                         throws IOException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeNumber

        public void writeNumber​(String encodedValue)
                         throws IOException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeBoolean

        public void writeBoolean​(boolean state)
                          throws IOException
        Specified by:
        writeBoolean in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeNull

        public void writeNull()
                       throws IOException
        Specified by:
        writeNull in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        IOException
      • writeBsonObjectId

        public void writeBsonObjectId​(org.bson.types.ObjectId objectId)
      • writeBsonValue

        public void writeBsonValue​(org.bson.BsonValue value)
      • flush

        public void flush()
                   throws IOException
        Specified by:
        flush in interface Flushable
        Specified by:
        flush in class com.fasterxml.jackson.core.base.GeneratorBase
        Throws:
        IOException
      • _releaseBuffers

        protected void _releaseBuffers()
        Specified by:
        _releaseBuffers in class com.fasterxml.jackson.core.base.GeneratorBase
      • _verifyValueWrite

        protected void _verifyValueWrite​(String typeMsg)
                                  throws IOException
        Specified by:
        _verifyValueWrite in class com.fasterxml.jackson.core.base.GeneratorBase
        Throws:
        IOException