net.vz.mongodb.jackson.internal.stream
Class DBDecoderBsonParser

java.lang.Object
  extended by org.codehaus.jackson.JsonParser
      extended by org.codehaus.jackson.impl.JsonParserMinimalBase
          extended by de.undercouch.bson4jackson.BsonParser
              extended by net.vz.mongodb.jackson.internal.stream.DBDecoderBsonParser
All Implemented Interfaces:
Closeable, JacksonDBCollectionProvider, org.codehaus.jackson.Versioned

public class DBDecoderBsonParser
extends de.undercouch.bson4jackson.BsonParser
implements JacksonDBCollectionProvider

Parser that wraps BSONParser to convert bson4jackson ObjectIds to org.bson ObjectIds, and stores error codes

Since:
1.1.2
Author:
James Roper

Nested Class Summary
 
Nested classes/interfaces inherited from class de.undercouch.bson4jackson.BsonParser
de.undercouch.bson4jackson.BsonParser.Feature
 
Nested classes/interfaces inherited from class org.codehaus.jackson.JsonParser
org.codehaus.jackson.JsonParser.NumberType
 
Field Summary
 
Fields inherited from class org.codehaus.jackson.impl.JsonParserMinimalBase
INT_APOSTROPHE, INT_ASTERISK, INT_b, INT_BACKSLASH, INT_COLON, INT_COMMA, INT_CR, INT_f, INT_LBRACKET, INT_LCURLY, INT_LF, INT_n, INT_QUOTE, INT_r, INT_RBRACKET, INT_RCURLY, INT_SLASH, INT_SPACE, INT_t, INT_TAB, INT_u
 
Fields inherited from class org.codehaus.jackson.JsonParser
_currToken, _features, _lastClearedToken
 
Constructor Summary
DBDecoderBsonParser(int jsonFeatures, InputStream in, JacksonDBObject<?> dbObject, JacksonDBCollection dbCollection)
           
 
Method Summary
 JacksonDBCollection getDBCollection()
          Get the JacksonDBCollection that this object knows about
 Object getEmbeddedObject()
           
 boolean handleUnknownProperty(org.codehaus.jackson.map.DeserializationContext ctxt, org.codehaus.jackson.map.JsonDeserializer<?> deserializer, Object beanOrClass, String propertyName)
           
 
Methods inherited from class de.undercouch.bson4jackson.BsonParser
_handleEOF, close, getBigIntegerValue, getBinaryValue, getCodec, getContext, getCurrentLocation, getCurrentName, getDecimalValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getNumberType, getNumberValue, getParsingContext, getText, getTextCharacters, getTextLength, getTextOffset, getTokenLocation, handleBinary, handleDBPointer, handleJavascriptWithScope, handleNewDocument, handleRegEx, hasTextCharacters, isClosed, isEnabled, nextToken, readCString, readDocument, readObjectId, readString, readSymbol, readTimestamp, regexStrToFlags, setCodec, skipCString
 
Methods inherited from class org.codehaus.jackson.impl.JsonParserMinimalBase
_constructError, _decodeBase64, _getCharDesc, _handleUnrecognizedCharacterEscape, _reportBase64EOF, _reportError, _reportInvalidBase64, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportUnexpectedChar, _throwInternal, _throwInvalidSpace, _throwUnquotedSpace, _wrapError, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsLong, skipChildren
 
Methods inherited from class org.codehaus.jackson.JsonParser
_constructError, canUseSchema, clearCurrentToken, configure, disable, disableFeature, enable, enableFeature, getBinaryValue, getBooleanValue, getByteValue, getCurrentToken, getInputSource, getLastClearedToken, getShortValue, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsLong, hasCurrentToken, isEnabled, isExpectedStartArrayToken, isFeatureEnabled, nextBooleanValue, nextFieldName, nextIntValue, nextLongValue, nextTextValue, nextValue, readValueAs, readValueAs, readValueAsTree, readValuesAs, readValuesAs, releaseBuffered, releaseBuffered, setFeature, setSchema, version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBDecoderBsonParser

public DBDecoderBsonParser(int jsonFeatures,
                           InputStream in,
                           JacksonDBObject<?> dbObject,
                           JacksonDBCollection dbCollection)
Method Detail

getEmbeddedObject

public Object getEmbeddedObject()
                         throws IOException,
                                org.codehaus.jackson.JsonParseException
Overrides:
getEmbeddedObject in class de.undercouch.bson4jackson.BsonParser
Throws:
IOException
org.codehaus.jackson.JsonParseException

handleUnknownProperty

public boolean handleUnknownProperty(org.codehaus.jackson.map.DeserializationContext ctxt,
                                     org.codehaus.jackson.map.JsonDeserializer<?> deserializer,
                                     Object beanOrClass,
                                     String propertyName)
                              throws IOException
Throws:
IOException

getDBCollection

public JacksonDBCollection getDBCollection()
Description copied from interface: JacksonDBCollectionProvider
Get the JacksonDBCollection that this object knows about

Specified by:
getDBCollection in interface JacksonDBCollectionProvider
Returns:
The JackosnDBCollection


Copyright © 2011-2012 VZ Netzwerke. All Rights Reserved.