org.elasticsearch.common.xcontent.json
Class JsonXContentParser
java.lang.Object
org.elasticsearch.common.xcontent.support.AbstractXContentParser
org.elasticsearch.common.xcontent.json.JsonXContentParser
- All Implemented Interfaces:
- XContentParser
public class JsonXContentParser
- extends AbstractXContentParser
Constructor Summary |
JsonXContentParser(org.elasticsearch.common.jackson.JsonParser parser)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonXContentParser
public JsonXContentParser(org.elasticsearch.common.jackson.JsonParser parser)
contentType
public XContentType contentType()
nextToken
public XContentParser.Token nextToken()
throws java.io.IOException
- Throws:
java.io.IOException
skipChildren
public void skipChildren()
throws java.io.IOException
- Throws:
java.io.IOException
currentToken
public XContentParser.Token currentToken()
numberType
public XContentParser.NumberType numberType()
throws java.io.IOException
- Throws:
java.io.IOException
estimatedNumberType
public boolean estimatedNumberType()
- Description copied from interface:
XContentParser
- Is the number type estimated or not (i.e. an int might actually be a long, its just low enough
to be an int).
currentName
public java.lang.String currentName()
throws java.io.IOException
- Throws:
java.io.IOException
doBooleanValue
protected boolean doBooleanValue()
throws java.io.IOException
- Specified by:
doBooleanValue
in class AbstractXContentParser
- Throws:
java.io.IOException
text
public java.lang.String text()
throws java.io.IOException
- Throws:
java.io.IOException
textCharacters
public char[] textCharacters()
throws java.io.IOException
- Throws:
java.io.IOException
textLength
public int textLength()
throws java.io.IOException
- Throws:
java.io.IOException
textOffset
public int textOffset()
throws java.io.IOException
- Throws:
java.io.IOException
numberValue
public java.lang.Number numberValue()
throws java.io.IOException
- Throws:
java.io.IOException
doShortValue
public short doShortValue()
throws java.io.IOException
- Specified by:
doShortValue
in class AbstractXContentParser
- Throws:
java.io.IOException
doIntValue
public int doIntValue()
throws java.io.IOException
- Specified by:
doIntValue
in class AbstractXContentParser
- Throws:
java.io.IOException
doLongValue
public long doLongValue()
throws java.io.IOException
- Specified by:
doLongValue
in class AbstractXContentParser
- Throws:
java.io.IOException
doFloatValue
public float doFloatValue()
throws java.io.IOException
- Specified by:
doFloatValue
in class AbstractXContentParser
- Throws:
java.io.IOException
doDoubleValue
public double doDoubleValue()
throws java.io.IOException
- Specified by:
doDoubleValue
in class AbstractXContentParser
- Throws:
java.io.IOException
binaryValue
public byte[] binaryValue()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()