org.elasticsearch.common.xcontent
Interface XContentParser
- All Superinterfaces:
- Closeable
- All Known Implementing Classes:
- AbstractXContentParser, JsonXContentParser, SmileXContentParser, YamlXContentParser
public interface XContentParser
- extends Closeable
contentType
XContentType contentType()
nextToken
XContentParser.Token nextToken()
throws IOException
- Throws:
IOException
skipChildren
void skipChildren()
throws IOException
- Throws:
IOException
currentToken
XContentParser.Token currentToken()
currentName
String currentName()
throws IOException
- Throws:
IOException
map
Map<String,Object> map()
throws IOException
- Throws:
IOException
mapOrdered
Map<String,Object> mapOrdered()
throws IOException
- Throws:
IOException
mapAndClose
Map<String,Object> mapAndClose()
throws IOException
- Throws:
IOException
mapOrderedAndClose
Map<String,Object> mapOrderedAndClose()
throws IOException
- Throws:
IOException
text
String text()
throws IOException
- Throws:
IOException
textOrNull
String textOrNull()
throws IOException
- Throws:
IOException
hasTextCharacters
boolean hasTextCharacters()
textCharacters
char[] textCharacters()
throws IOException
- Throws:
IOException
textLength
int textLength()
throws IOException
- Throws:
IOException
textOffset
int textOffset()
throws IOException
- Throws:
IOException
numberValue
Number numberValue()
throws IOException
- Throws:
IOException
numberType
XContentParser.NumberType numberType()
throws IOException
- Throws:
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 IOException
- Throws:
IOException
intValue
int intValue()
throws IOException
- Throws:
IOException
longValue
long longValue()
throws IOException
- Throws:
IOException
floatValue
float floatValue()
throws IOException
- Throws:
IOException
doubleValue
double doubleValue()
throws IOException
- Throws:
IOException
booleanValue
boolean booleanValue()
throws IOException
- Throws:
IOException
binaryValue
byte[] binaryValue()
throws IOException
- Throws:
IOException
close
void close()
- Specified by:
close
in interface Closeable
Copyright © 2009-2012. All Rights Reserved.