org.elasticsearch.common.xcontent
Interface XContentParser

All Known Implementing Classes:
AbstractXContentParser, JsonXContentParser, SmileXContentParser

public interface XContentParser


Nested Class Summary
static class XContentParser.NumberType
           
static class XContentParser.Token
           
 
Method Summary
 byte[] binaryValue()
           
 boolean booleanValue()
           
 void close()
           
 XContentType contentType()
           
 java.lang.String currentName()
           
 XContentParser.Token currentToken()
           
 double doubleValue()
           
 boolean estimatedNumberType()
          Is the number type estimated or not (i.e.
 float floatValue()
           
 boolean hasTextCharacters()
           
 int intValue()
           
 long longValue()
           
 java.util.Map<java.lang.String,java.lang.Object> map()
           
 java.util.Map<java.lang.String,java.lang.Object> mapAndClose()
           
 java.util.Map<java.lang.String,java.lang.Object> mapOrdered()
           
 XContentParser.Token nextToken()
           
 XContentParser.NumberType numberType()
           
 java.lang.Number numberValue()
           
 short shortValue()
           
 void skipChildren()
           
 java.lang.String text()
           
 char[] textCharacters()
           
 int textLength()
           
 int textOffset()
           
 java.lang.String textOrNull()
           
 

Method Detail

contentType

XContentType contentType()

nextToken

XContentParser.Token nextToken()
                               throws java.io.IOException
Throws:
java.io.IOException

skipChildren

void skipChildren()
                  throws java.io.IOException
Throws:
java.io.IOException

currentToken

XContentParser.Token currentToken()

currentName

java.lang.String currentName()
                             throws java.io.IOException
Throws:
java.io.IOException

map

java.util.Map<java.lang.String,java.lang.Object> map()
                                                     throws java.io.IOException
Throws:
java.io.IOException

mapOrdered

java.util.Map<java.lang.String,java.lang.Object> mapOrdered()
                                                            throws java.io.IOException
Throws:
java.io.IOException

mapAndClose

java.util.Map<java.lang.String,java.lang.Object> mapAndClose()
                                                             throws java.io.IOException
Throws:
java.io.IOException

text

java.lang.String text()
                      throws java.io.IOException
Throws:
java.io.IOException

textOrNull

java.lang.String textOrNull()
                            throws java.io.IOException
Throws:
java.io.IOException

hasTextCharacters

boolean hasTextCharacters()

textCharacters

char[] textCharacters()
                      throws java.io.IOException
Throws:
java.io.IOException

textLength

int textLength()
               throws java.io.IOException
Throws:
java.io.IOException

textOffset

int textOffset()
               throws java.io.IOException
Throws:
java.io.IOException

numberValue

java.lang.Number numberValue()
                             throws java.io.IOException
Throws:
java.io.IOException

numberType

XContentParser.NumberType numberType()
                                     throws java.io.IOException
Throws:
java.io.IOException

estimatedNumberType

boolean estimatedNumberType()
Is the number type estimated or not (i.e. an int might actually be a long, its just low enough to be an int).


shortValue

short shortValue()
                 throws java.io.IOException
Throws:
java.io.IOException

intValue

int intValue()
             throws java.io.IOException
Throws:
java.io.IOException

longValue

long longValue()
               throws java.io.IOException
Throws:
java.io.IOException

floatValue

float floatValue()
                 throws java.io.IOException
Throws:
java.io.IOException

doubleValue

double doubleValue()
                   throws java.io.IOException
Throws:
java.io.IOException

booleanValue

boolean booleanValue()
                     throws java.io.IOException
Throws:
java.io.IOException

binaryValue

byte[] binaryValue()
                   throws java.io.IOException
Throws:
java.io.IOException

close

void close()