Package org.mongojack.internal.stream
Class JsonGeneratorAdapter
- java.lang.Object
-
- com.fasterxml.jackson.core.JsonGenerator
-
- com.fasterxml.jackson.core.base.GeneratorBase
-
- org.mongojack.internal.stream.JsonGeneratorAdapter
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned,Closeable,Flushable,AutoCloseable
- Direct Known Subclasses:
DBEncoderBsonGenerator
public class JsonGeneratorAdapter extends com.fasterxml.jackson.core.base.GeneratorBase
-
-
Field Summary
Fields Modifier and Type Field Description protected org.bson.UuidRepresentationuuidRepresentationprotected org.bson.BsonWriterwriter-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsonGeneratorAdapter(int features, com.fasterxml.jackson.core.ObjectCodec codec, com.fasterxml.jackson.core.json.JsonWriteContext ctxt, org.bson.BsonWriter writer, org.bson.UuidRepresentation uuidRepresentation)protectedJsonGeneratorAdapter(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)voidflush()voidwriteBinary(com.fasterxml.jackson.core.Base64Variant bv, byte[] data, int offset, int len)voidwriteBoolean(boolean state)voidwriteBsonObjectId(org.bson.types.ObjectId objectId)voidwriteBsonValue(org.bson.BsonValue value)voidwriteEndArray()voidwriteEndObject()voidwriteFieldName(String name)voidwriteNull()voidwriteNumber(double v)voidwriteNumber(float v)voidwriteNumber(int v)voidwriteNumber(long v)voidwriteNumber(String encodedValue)voidwriteNumber(BigDecimal v)voidwriteNumber(BigInteger v)voidwriteRaw(char c)voidwriteRaw(char[] text, int offset, int len)voidwriteRaw(String text)voidwriteRaw(String text, int offset, int len)voidwriteRawUTF8String(byte[] text, int offset, int length)voidwriteStartArray()voidwriteStartObject()voidwriteString(char[] text, int offset, int len)voidwriteString(String text)voidwriteUTF8String(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
-
-
-
-
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:
writeStartArrayin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeEndArray
public void writeEndArray() throws IOException- Specified by:
writeEndArrayin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeStartObject
public void writeStartObject() throws IOException- Specified by:
writeStartObjectin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeEndObject
public void writeEndObject() throws IOException- Specified by:
writeEndObjectin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeFieldName
public void writeFieldName(String name) throws IOException
- Specified by:
writeFieldNamein classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeString
public void writeString(String text) throws IOException
- Specified by:
writeStringin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeString
public void writeString(char[] text, int offset, int len) throws IOException- Specified by:
writeStringin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeRawUTF8String
public void writeRawUTF8String(byte[] text, int offset, int length) throws IOException- Specified by:
writeRawUTF8Stringin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeUTF8String
public void writeUTF8String(byte[] text, int offset, int length) throws IOException- Specified by:
writeUTF8Stringin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeRaw
public void writeRaw(String text) throws IOException
- Specified by:
writeRawin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeRaw
public void writeRaw(String text, int offset, int len) throws IOException
- Specified by:
writeRawin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeRaw
public void writeRaw(char[] text, int offset, int len) throws IOException- Specified by:
writeRawin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeRaw
public void writeRaw(char c) throws IOException- Specified by:
writeRawin classcom.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:
writeBinaryin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNumber
public void writeNumber(int v) throws IOException- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNumber
public void writeNumber(long v) throws IOException- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNumber
public void writeNumber(BigInteger v) throws IOException
- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNumber
public void writeNumber(double v) throws IOException- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNumber
public void writeNumber(float v) throws IOException- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNumber
public void writeNumber(BigDecimal v) throws IOException
- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNumber
public void writeNumber(String encodedValue) throws IOException
- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeBoolean
public void writeBoolean(boolean state) throws IOException- Specified by:
writeBooleanin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNull
public void writeNull() throws IOException- Specified by:
writeNullin classcom.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:
flushin interfaceFlushable- Specified by:
flushin classcom.fasterxml.jackson.core.base.GeneratorBase- Throws:
IOException
-
_releaseBuffers
protected void _releaseBuffers()
- Specified by:
_releaseBuffersin classcom.fasterxml.jackson.core.base.GeneratorBase
-
_verifyValueWrite
protected void _verifyValueWrite(String typeMsg) throws IOException
- Specified by:
_verifyValueWritein classcom.fasterxml.jackson.core.base.GeneratorBase- Throws:
IOException
-
-