public class JsonXContentParser extends AbstractXContentParser
XContentParser.NumberType, XContentParser.TokenDEFAULT_NUMBER_COEERCE_POLICY| コンストラクタと説明 |
|---|
JsonXContentParser(com.fasterxml.jackson.core.JsonParser parser) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
byte[] |
binaryValue()
Reads a plain binary value that was written via one of the following methods:
XContentBuilder.field(String, org.apache.lucene.util.BytesRef)
XContentBuilder.field(String, org.elasticsearch.common.bytes.BytesReference)
XContentBuilder.field(String, byte[], int, int)}
XContentBuilder.field(String, byte[])}
as well as via their XContentBuilderString variants of the separated value methods. |
void |
close() |
XContentType |
contentType() |
String |
currentName() |
XContentParser.Token |
currentToken() |
protected boolean |
doBooleanValue() |
double |
doDoubleValue() |
float |
doFloatValue() |
int |
doIntValue() |
long |
doLongValue() |
short |
doShortValue() |
XContentLocation |
getTokenLocation()
Used for error reporting to highlight where syntax errors occur in
content being parsed.
|
boolean |
hasTextCharacters()
Method that can be used to determine whether calling of textCharacters() would be the most efficient way to
access textual content for the event parser currently points to.
|
boolean |
isClosed() |
XContentParser.Token |
nextToken() |
XContentParser.NumberType |
numberType() |
Number |
numberValue() |
Object |
objectBytes() |
Object |
objectText() |
void |
skipChildren() |
String |
text() |
char[] |
textCharacters() |
int |
textLength() |
int |
textOffset() |
org.apache.lucene.util.BytesRef |
utf8Bytes()
Returns a BytesRef holding UTF-8 bytes.
|
booleanValue, doubleValue, doubleValue, floatValue, floatValue, intValue, intValue, isBooleanValue, list, listOrderedMap, longValue, longValue, map, mapOrdered, shortValue, shortValue, textOrNull, utf8BytesOrNullpublic JsonXContentParser(com.fasterxml.jackson.core.JsonParser parser)
public XContentType contentType()
public XContentParser.Token nextToken() throws IOException
IOExceptionpublic void skipChildren()
throws IOException
IOExceptionpublic XContentParser.Token currentToken()
public XContentParser.NumberType numberType() throws IOException
IOExceptionpublic String currentName() throws IOException
IOExceptionprotected boolean doBooleanValue()
throws IOException
doBooleanValue クラス内 AbstractXContentParserIOExceptionpublic String text() throws IOException
IOExceptionpublic org.apache.lucene.util.BytesRef utf8Bytes()
throws IOException
XContentParserXContentParser.binaryValue()IOExceptionpublic Object objectText() throws IOException
IOExceptionpublic Object objectBytes() throws IOException
IOExceptionpublic boolean hasTextCharacters()
XContentParserpublic char[] textCharacters()
throws IOException
IOExceptionpublic int textLength()
throws IOException
IOExceptionpublic int textOffset()
throws IOException
IOExceptionpublic Number numberValue() throws IOException
IOExceptionpublic short doShortValue()
throws IOException
doShortValue クラス内 AbstractXContentParserIOExceptionpublic int doIntValue()
throws IOException
doIntValue クラス内 AbstractXContentParserIOExceptionpublic long doLongValue()
throws IOException
doLongValue クラス内 AbstractXContentParserIOExceptionpublic float doFloatValue()
throws IOException
doFloatValue クラス内 AbstractXContentParserIOExceptionpublic double doDoubleValue()
throws IOException
doDoubleValue クラス内 AbstractXContentParserIOExceptionpublic byte[] binaryValue()
throws IOException
XContentParserXContentBuilder.field(String, org.apache.lucene.util.BytesRef)XContentBuilder.field(String, org.elasticsearch.common.bytes.BytesReference)XContentBuilder.field(String, byte[], int, int)}XContentBuilder.field(String, byte[])}XContentBuilderString variants of the separated value methods.
Note: Do not use this method to read values written with:
these methods write UTF-8 encoded strings and must be read through:
IOExceptionpublic XContentLocation getTokenLocation()
XContentParserpublic void close()
public boolean isClosed()
isClosed インタフェース内 XContentParserisClosed クラス内 AbstractXContentParserCopyright © 2009–2016. All rights reserved.