org.elasticsearch.common.xcontent.support
Class AbstractXContentParser

java.lang.Object
  extended by org.elasticsearch.common.xcontent.support.AbstractXContentParser
All Implemented Interfaces:
XContentParser
Direct Known Subclasses:
JsonXContentParser

public abstract class AbstractXContentParser
extends java.lang.Object
implements XContentParser


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.XContentParser
XContentParser.NumberType, XContentParser.Token
 
Constructor Summary
AbstractXContentParser()
           
 
Method Summary
 boolean booleanValue()
           
protected abstract  boolean doBooleanValue()
           
protected abstract  double doDoubleValue()
           
protected abstract  float doFloatValue()
           
protected abstract  int doIntValue()
           
protected abstract  long doLongValue()
           
protected abstract  short doShortValue()
           
 double doubleValue()
           
 float floatValue()
           
 int intValue()
           
 long longValue()
           
 java.util.Map<java.lang.String,java.lang.Object> map()
           
 java.util.Map<java.lang.String,java.lang.Object> mapAndClose()
           
 short shortValue()
           
 java.lang.String textOrNull()
           
 
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
 

Constructor Detail

AbstractXContentParser

public AbstractXContentParser()
Method Detail

booleanValue

public boolean booleanValue()
                     throws java.io.IOException
Specified by:
booleanValue in interface XContentParser
Throws:
java.io.IOException

doBooleanValue

protected abstract boolean doBooleanValue()
                                   throws java.io.IOException
Throws:
java.io.IOException

shortValue

public short shortValue()
                 throws java.io.IOException
Specified by:
shortValue in interface XContentParser
Throws:
java.io.IOException

doShortValue

protected abstract short doShortValue()
                               throws java.io.IOException
Throws:
java.io.IOException

intValue

public int intValue()
             throws java.io.IOException
Specified by:
intValue in interface XContentParser
Throws:
java.io.IOException

doIntValue

protected abstract int doIntValue()
                           throws java.io.IOException
Throws:
java.io.IOException

longValue

public long longValue()
               throws java.io.IOException
Specified by:
longValue in interface XContentParser
Throws:
java.io.IOException

doLongValue

protected abstract long doLongValue()
                             throws java.io.IOException
Throws:
java.io.IOException

floatValue

public float floatValue()
                 throws java.io.IOException
Specified by:
floatValue in interface XContentParser
Throws:
java.io.IOException

doFloatValue

protected abstract float doFloatValue()
                               throws java.io.IOException
Throws:
java.io.IOException

doubleValue

public double doubleValue()
                   throws java.io.IOException
Specified by:
doubleValue in interface XContentParser
Throws:
java.io.IOException

doDoubleValue

protected abstract double doDoubleValue()
                                 throws java.io.IOException
Throws:
java.io.IOException

textOrNull

public java.lang.String textOrNull()
                            throws java.io.IOException
Specified by:
textOrNull in interface XContentParser
Throws:
java.io.IOException

map

public java.util.Map<java.lang.String,java.lang.Object> map()
                                                     throws java.io.IOException
Specified by:
map in interface XContentParser
Throws:
java.io.IOException

mapAndClose

public java.util.Map<java.lang.String,java.lang.Object> mapAndClose()
                                                             throws java.io.IOException
Specified by:
mapAndClose in interface XContentParser
Throws:
java.io.IOException