net.vz.mongodb.jackson.internal.object
Class BsonObjectGenerator
java.lang.Object
org.codehaus.jackson.JsonGenerator
net.vz.mongodb.jackson.internal.object.BsonObjectGenerator
- All Implemented Interfaces:
- Closeable, org.codehaus.jackson.Versioned
public class BsonObjectGenerator
- extends org.codehaus.jackson.JsonGenerator
JSON generator that actually generates a BSON object
- Since:
- 1.0
- Author:
- James Roper
Nested classes/interfaces inherited from class org.codehaus.jackson.JsonGenerator |
org.codehaus.jackson.JsonGenerator.Feature |
Fields inherited from class org.codehaus.jackson.JsonGenerator |
_cfgPrettyPrinter |
Method Summary |
void |
close()
|
void |
copyCurrentEvent(org.codehaus.jackson.JsonParser jp)
|
void |
copyCurrentStructure(org.codehaus.jackson.JsonParser jp)
|
org.codehaus.jackson.JsonGenerator |
disable(org.codehaus.jackson.JsonGenerator.Feature f)
|
org.codehaus.jackson.JsonGenerator |
enable(org.codehaus.jackson.JsonGenerator.Feature f)
|
void |
flush()
|
org.codehaus.jackson.ObjectCodec |
getCodec()
|
com.mongodb.DBObject |
getDBObject()
|
org.codehaus.jackson.JsonStreamContext |
getOutputContext()
|
Object |
getValue()
|
boolean |
isClosed()
|
boolean |
isEnabled(org.codehaus.jackson.JsonGenerator.Feature f)
|
org.codehaus.jackson.JsonGenerator |
setCodec(org.codehaus.jackson.ObjectCodec oc)
|
org.codehaus.jackson.JsonGenerator |
useDefaultPrettyPrinter()
|
void |
writeBinary(org.codehaus.jackson.Base64Variant b64variant,
byte[] data,
int offset,
int len)
|
void |
writeBoolean(boolean state)
|
void |
writeEndArray()
|
void |
writeEndObject()
|
void |
writeFieldName(String name)
|
void |
writeNull()
|
void |
writeNumber(BigDecimal dec)
|
void |
writeNumber(BigInteger v)
|
void |
writeNumber(double d)
|
void |
writeNumber(float f)
|
void |
writeNumber(int v)
|
void |
writeNumber(long v)
|
void |
writeNumber(String encodedValue)
|
void |
writeObject(Object pojo)
|
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 |
writeRawValue(char[] text,
int offset,
int len)
|
void |
writeRawValue(String text)
|
void |
writeRawValue(String text,
int offset,
int len)
|
void |
writeStartArray()
|
void |
writeStartObject()
|
void |
writeString(char[] text,
int offset,
int len)
|
void |
writeString(String text)
|
void |
writeTree(org.codehaus.jackson.JsonNode rootNode)
|
void |
writeUTF8String(byte[] text,
int offset,
int length)
|
Methods inherited from class org.codehaus.jackson.JsonGenerator |
canUseSchema, configure, disableFeature, enableFeature, getCharacterEscapes, getHighestEscapedChar, getOutputTarget, isFeatureEnabled, setCharacterEscapes, setFeature, setHighestNonEscapedChar, setPrettyPrinter, setSchema, version, writeArrayFieldStart, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeFieldName, writeFieldName, writeNullField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeString, writeStringField |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BsonObjectGenerator
public BsonObjectGenerator()
getDBObject
public com.mongodb.DBObject getDBObject()
getValue
public Object getValue()
enable
public org.codehaus.jackson.JsonGenerator enable(org.codehaus.jackson.JsonGenerator.Feature f)
- Specified by:
enable
in class org.codehaus.jackson.JsonGenerator
disable
public org.codehaus.jackson.JsonGenerator disable(org.codehaus.jackson.JsonGenerator.Feature f)
- Specified by:
disable
in class org.codehaus.jackson.JsonGenerator
isEnabled
public boolean isEnabled(org.codehaus.jackson.JsonGenerator.Feature f)
- Specified by:
isEnabled
in class org.codehaus.jackson.JsonGenerator
setCodec
public org.codehaus.jackson.JsonGenerator setCodec(org.codehaus.jackson.ObjectCodec oc)
- Specified by:
setCodec
in class org.codehaus.jackson.JsonGenerator
getCodec
public org.codehaus.jackson.ObjectCodec getCodec()
- Specified by:
getCodec
in class org.codehaus.jackson.JsonGenerator
useDefaultPrettyPrinter
public org.codehaus.jackson.JsonGenerator useDefaultPrettyPrinter()
- Specified by:
useDefaultPrettyPrinter
in class org.codehaus.jackson.JsonGenerator
writeStartArray
public void writeStartArray()
throws IOException
- Specified by:
writeStartArray
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeEndArray
public void writeEndArray()
throws IOException
- Specified by:
writeEndArray
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeStartObject
public void writeStartObject()
throws IOException
- Specified by:
writeStartObject
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeEndObject
public void writeEndObject()
throws IOException
- Specified by:
writeEndObject
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeFieldName
public void writeFieldName(String name)
throws IOException
- Specified by:
writeFieldName
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeString
public void writeString(String text)
throws IOException
- Specified by:
writeString
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeString
public void writeString(char[] text,
int offset,
int len)
throws IOException
- Specified by:
writeString
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeRawUTF8String
public void writeRawUTF8String(byte[] text,
int offset,
int length)
throws IOException
- Specified by:
writeRawUTF8String
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeUTF8String
public void writeUTF8String(byte[] text,
int offset,
int length)
throws IOException
- Specified by:
writeUTF8String
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeRaw
public void writeRaw(String text)
throws IOException
- Specified by:
writeRaw
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeRaw
public void writeRaw(String text,
int offset,
int len)
throws IOException
- Specified by:
writeRaw
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeRaw
public void writeRaw(char[] text,
int offset,
int len)
throws IOException
- Specified by:
writeRaw
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeRaw
public void writeRaw(char c)
throws IOException
- Specified by:
writeRaw
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeRawValue
public void writeRawValue(String text)
throws IOException
- Specified by:
writeRawValue
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeRawValue
public void writeRawValue(String text,
int offset,
int len)
throws IOException
- Specified by:
writeRawValue
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeRawValue
public void writeRawValue(char[] text,
int offset,
int len)
throws IOException
- Specified by:
writeRawValue
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeBinary
public void writeBinary(org.codehaus.jackson.Base64Variant b64variant,
byte[] data,
int offset,
int len)
throws IOException
- Specified by:
writeBinary
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeNumber
public void writeNumber(int v)
throws IOException
- Specified by:
writeNumber
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeNumber
public void writeNumber(long v)
throws IOException
- Specified by:
writeNumber
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeNumber
public void writeNumber(BigInteger v)
throws IOException
- Specified by:
writeNumber
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeNumber
public void writeNumber(double d)
throws IOException
- Specified by:
writeNumber
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeNumber
public void writeNumber(float f)
throws IOException
- Specified by:
writeNumber
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeNumber
public void writeNumber(BigDecimal dec)
throws IOException
- Specified by:
writeNumber
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeNumber
public void writeNumber(String encodedValue)
throws IOException,
UnsupportedOperationException
- Specified by:
writeNumber
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
UnsupportedOperationException
writeBoolean
public void writeBoolean(boolean state)
throws IOException
- Specified by:
writeBoolean
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeNull
public void writeNull()
throws IOException
- Specified by:
writeNull
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeObject
public void writeObject(Object pojo)
throws IOException
- Specified by:
writeObject
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
writeTree
public void writeTree(org.codehaus.jackson.JsonNode rootNode)
throws IOException
- Specified by:
writeTree
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
copyCurrentEvent
public void copyCurrentEvent(org.codehaus.jackson.JsonParser jp)
throws IOException
- Specified by:
copyCurrentEvent
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
copyCurrentStructure
public void copyCurrentStructure(org.codehaus.jackson.JsonParser jp)
throws IOException
- Specified by:
copyCurrentStructure
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
getOutputContext
public org.codehaus.jackson.JsonStreamContext getOutputContext()
- Specified by:
getOutputContext
in class org.codehaus.jackson.JsonGenerator
flush
public void flush()
throws IOException
- Specified by:
flush
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
isClosed
public boolean isClosed()
- Specified by:
isClosed
in class org.codehaus.jackson.JsonGenerator
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class org.codehaus.jackson.JsonGenerator
- Throws:
IOException
Copyright © 2011-2012 VZ Netzwerke. All Rights Reserved.