org.glassfish.jersey.media.json.internal.reader
Class JacksonRootAddingParser
java.lang.Object
org.codehaus.jackson.JsonParser
org.glassfish.jersey.media.json.internal.reader.JacksonRootAddingParser
- All Implemented Interfaces:
- Closeable, org.codehaus.jackson.Versioned
public class JacksonRootAddingParser
- extends org.codehaus.jackson.JsonParser
Jackson parser that adds a configured data root.
- Author:
- Jakub Podlesak
| Nested classes/interfaces inherited from class org.codehaus.jackson.JsonParser |
org.codehaus.jackson.JsonParser.Feature, org.codehaus.jackson.JsonParser.NumberType |
| Fields inherited from class org.codehaus.jackson.JsonParser |
_currToken, _features, _lastClearedToken |
| Methods inherited from class org.codehaus.jackson.JsonParser |
_constructError, canUseSchema, clearCurrentToken, configure, disable, enable, getBinaryValue, getBooleanValue, getCurrentToken, getEmbeddedObject, getInputSource, getLastClearedToken, getValueAsBoolean, getValueAsBoolean, getValueAsDouble, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, hasCurrentToken, hasTextCharacters, isEnabled, isExpectedStartArrayToken, isFeatureEnabled, nextBooleanValue, nextFieldName, nextIntValue, nextLongValue, nextTextValue, readValuesAs, readValuesAs, releaseBuffered, releaseBuffered, setSchema, version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createRootAddingParser
public static org.codehaus.jackson.JsonParser createRootAddingParser(org.codehaus.jackson.JsonParser parser,
String rootName)
enableFeature
public void enableFeature(org.codehaus.jackson.JsonParser.Feature feature)
- Overrides:
enableFeature in class org.codehaus.jackson.JsonParser
disableFeature
public void disableFeature(org.codehaus.jackson.JsonParser.Feature feature)
- Overrides:
disableFeature in class org.codehaus.jackson.JsonParser
setFeature
public void setFeature(org.codehaus.jackson.JsonParser.Feature feature,
boolean isSet)
- Overrides:
setFeature in class org.codehaus.jackson.JsonParser
nextValue
public org.codehaus.jackson.JsonToken nextValue()
throws IOException,
org.codehaus.jackson.JsonParseException
- Overrides:
nextValue in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
isClosed
public boolean isClosed()
- Specified by:
isClosed in class org.codehaus.jackson.JsonParser
getByteValue
public byte getByteValue()
throws IOException,
org.codehaus.jackson.JsonParseException
- Overrides:
getByteValue in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getShortValue
public short getShortValue()
throws IOException,
org.codehaus.jackson.JsonParseException
- Overrides:
getShortValue in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getBigIntegerValue
public BigInteger getBigIntegerValue()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getBigIntegerValue in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getFloatValue
public float getFloatValue()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getFloatValue in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getBinaryValue
public byte[] getBinaryValue(org.codehaus.jackson.Base64Variant base64Variant)
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getBinaryValue in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
readValueAs
public <T> T readValueAs(Class<T> type)
throws IOException,
org.codehaus.jackson.JsonProcessingException
- Overrides:
readValueAs in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonProcessingException
readValueAs
public <T> T readValueAs(org.codehaus.jackson.type.TypeReference<?> typeRef)
throws IOException,
org.codehaus.jackson.JsonProcessingException
- Overrides:
readValueAs in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonProcessingException
readValueAsTree
public org.codehaus.jackson.JsonNode readValueAsTree()
throws IOException,
org.codehaus.jackson.JsonProcessingException
- Overrides:
readValueAsTree in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonProcessingException
getParsingContext
public org.codehaus.jackson.JsonStreamContext getParsingContext()
- Specified by:
getParsingContext in class org.codehaus.jackson.JsonParser
nextToken
public org.codehaus.jackson.JsonToken nextToken()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
nextToken in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
skipChildren
public org.codehaus.jackson.JsonParser skipChildren()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
skipChildren in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getCurrentName
public String getCurrentName()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getCurrentName in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in class org.codehaus.jackson.JsonParser
- Throws:
IOException
getTokenLocation
public org.codehaus.jackson.JsonLocation getTokenLocation()
- Specified by:
getTokenLocation in class org.codehaus.jackson.JsonParser
getCurrentLocation
public org.codehaus.jackson.JsonLocation getCurrentLocation()
- Specified by:
getCurrentLocation in class org.codehaus.jackson.JsonParser
getText
public String getText()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getText in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getTextCharacters
public char[] getTextCharacters()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getTextCharacters in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getTextLength
public int getTextLength()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getTextLength in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getTextOffset
public int getTextOffset()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getTextOffset in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getNumberValue
public Number getNumberValue()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getNumberValue in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getNumberType
public org.codehaus.jackson.JsonParser.NumberType getNumberType()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getNumberType in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getIntValue
public int getIntValue()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getIntValue in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getLongValue
public long getLongValue()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getLongValue in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getDoubleValue
public double getDoubleValue()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getDoubleValue in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getDecimalValue
public BigDecimal getDecimalValue()
throws IOException,
org.codehaus.jackson.JsonParseException
- Specified by:
getDecimalValue in class org.codehaus.jackson.JsonParser
- Throws:
IOException
org.codehaus.jackson.JsonParseException
getCodec
public org.codehaus.jackson.ObjectCodec getCodec()
- Specified by:
getCodec in class org.codehaus.jackson.JsonParser
setCodec
public void setCodec(org.codehaus.jackson.ObjectCodec c)
- Specified by:
setCodec in class org.codehaus.jackson.JsonParser
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.