org.elasticsearch.util.xcontent
Interface XContentParser
- All Known Implementing Classes:
- AbstractXContentParser, JsonXContentParser, XsonXContentParser
public interface XContentParser
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
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
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()