org.elasticsearch.common.xcontent.support
Class AbstractXContentParser

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

public abstract class AbstractXContentParser
extends 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()
           
 Map<String,Object> map()
           
 Map<String,Object> mapAndClose()
           
 Map<String,Object> mapOrdered()
           
 Map<String,Object> mapOrderedAndClose()
           
 short shortValue()
           
 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 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.