public abstract class RootParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RootParser.EmbeddedArrayParser
Parser for data embedded within a message structure which is
encoded as an array of objects.
|
static class |
RootParser.EmbeddedObjectParser
Parser for data embedded within a message structure which is encoded
as a single JSON object.
|
static class |
RootParser.RootArrayParser
Parser for a compliant JSON data set which consists of an
array at the top level, where each element of the array is a
JSON object that represents a data record.
|
static class |
RootParser.RootObjectParser
Parser for a jsonlines-style
data set which consists of a series of objects.
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
protected ObjectParser |
rootObject |
| Constructor and Description |
|---|
RootParser(JsonStructureParser structParser) |
| Modifier and Type | Method and Description |
|---|---|
protected ErrorFactory |
errorFactory() |
abstract boolean |
parseRoot(TokenIterator tokenizer)
Parse one data object.
|
protected boolean |
parseRootObject(com.fasterxml.jackson.core.JsonToken token,
TokenIterator tokenizer)
Parse one data object.
|
protected static final org.slf4j.Logger logger
protected final ObjectParser rootObject
public RootParser(JsonStructureParser structParser)
public abstract boolean parseRoot(TokenIterator tokenizer)
true if an object was found, false if the
end of data was reached.protected boolean parseRootObject(com.fasterxml.jackson.core.JsonToken token,
TokenIterator tokenizer)
true if an object was found, false if the
end of data was reached.protected ErrorFactory errorFactory()
Copyright © 2021 The Apache Software Foundation. All rights reserved.