org.elasticsearch.common.xcontent.support
Class AbstractXContentParser
java.lang.Object
org.elasticsearch.common.xcontent.support.AbstractXContentParser
- All Implemented Interfaces:
- Closeable, XContentParser
- Direct Known Subclasses:
- JsonXContentParser
public abstract class AbstractXContentParser
- extends Object
- implements XContentParser
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.elasticsearch.common.xcontent.XContentParser |
binaryValue, close, contentType, currentName, currentToken, estimatedNumberType, hasTextCharacters, nextToken, numberType, numberValue, skipChildren, text, textCharacters, textLength, textOffset |
AbstractXContentParser
public AbstractXContentParser()
booleanValue
public boolean booleanValue()
throws IOException
- Specified by:
booleanValue
in interface XContentParser
- Throws:
IOException
doBooleanValue
protected abstract boolean doBooleanValue()
throws IOException
- Throws:
IOException
shortValue
public short shortValue()
throws IOException
- Specified by:
shortValue
in interface XContentParser
- Throws:
IOException
doShortValue
protected abstract short doShortValue()
throws IOException
- Throws:
IOException
intValue
public int intValue()
throws IOException
- Specified by:
intValue
in interface XContentParser
- Throws:
IOException
doIntValue
protected abstract int doIntValue()
throws IOException
- Throws:
IOException
longValue
public long longValue()
throws IOException
- Specified by:
longValue
in interface XContentParser
- Throws:
IOException
doLongValue
protected abstract long doLongValue()
throws IOException
- Throws:
IOException
floatValue
public float floatValue()
throws IOException
- Specified by:
floatValue
in interface XContentParser
- Throws:
IOException
doFloatValue
protected abstract float doFloatValue()
throws IOException
- Throws:
IOException
doubleValue
public double doubleValue()
throws IOException
- Specified by:
doubleValue
in interface XContentParser
- Throws:
IOException
doDoubleValue
protected abstract double doDoubleValue()
throws IOException
- Throws:
IOException
textOrNull
public String textOrNull()
throws IOException
- Specified by:
textOrNull
in interface XContentParser
- Throws:
IOException
map
public Map<String,Object> map()
throws IOException
- Specified by:
map
in interface XContentParser
- Throws:
IOException
mapOrdered
public Map<String,Object> mapOrdered()
throws IOException
- Specified by:
mapOrdered
in interface XContentParser
- Throws:
IOException
mapAndClose
public Map<String,Object> mapAndClose()
throws IOException
- Specified by:
mapAndClose
in interface XContentParser
- Throws:
IOException
mapOrderedAndClose
public Map<String,Object> mapOrderedAndClose()
throws IOException
- Specified by:
mapOrderedAndClose
in interface XContentParser
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.