| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static @NonNull JsonParserStream |
create(@NonNull NormalizedNodeStreamWriter writer,
@NonNull JSONCodecFactory codecFactory)
|
static @NonNull JsonParserStream |
create(@NonNull NormalizedNodeStreamWriter writer,
@NonNull JSONCodecFactory codecFactory,
@NonNull SchemaNode parentNode)
|
static @NonNull JsonParserStream |
create(@NonNull NormalizedNodeStreamWriter writer,
@NonNull SchemaContext schemaContext)
Deprecated.
Use
create(NormalizedNodeStreamWriter, JSONCodecFactory) instead. |
static @NonNull JsonParserStream |
create(@NonNull NormalizedNodeStreamWriter writer,
@NonNull SchemaContext schemaContext,
@NonNull SchemaNode parentNode)
Deprecated.
|
void |
flush() |
JsonParserStream |
parse(com.google.gson.stream.JsonReader reader) |
void |
read(com.google.gson.stream.JsonReader in,
AbstractNodeDataWithSchema parent) |
public static @NonNull JsonParserStream create(@NonNull NormalizedNodeStreamWriter writer, @NonNull JSONCodecFactory codecFactory)
JsonParserStream backed by specified NormalizedNodeStreamWriter
and JSONCodecFactory. The stream will be logically rooted at the top of the SchemaContext associated
with the specified codec factory.writer - NormalizedNodeStreamWriter to use for instantiation of normalized nodescodecFactory - JSONCodecFactory to use for parsing leavesJsonParserStreamNullPointerException - if any of the arguments are nullpublic static @NonNull JsonParserStream create(@NonNull NormalizedNodeStreamWriter writer, @NonNull JSONCodecFactory codecFactory, @NonNull SchemaNode parentNode)
JsonParserStream backed by specified NormalizedNodeStreamWriter
and JSONCodecFactory. The stream will be logically rooted at the specified parent node.writer - NormalizedNodeStreamWriter to use for instantiation of normalized nodescodecFactory - JSONCodecFactory to use for parsing leavesparentNode - Logical root nodeJsonParserStreamNullPointerException - if any of the arguments are null@Deprecated public static @NonNull JsonParserStream create(@NonNull NormalizedNodeStreamWriter writer, @NonNull SchemaContext schemaContext)
create(NormalizedNodeStreamWriter, JSONCodecFactory) instead.JsonParserStream backed by specified NormalizedNodeStreamWriter
and SchemaContext. The stream will be logically rooted at the top of the supplied SchemaContext.writer - NormalizedNodeStreamWriter to use for instantiation of normalized nodesschemaContext - SchemaContext to useJsonParserStreamNullPointerException - if any of the arguments are null@Deprecated public static @NonNull JsonParserStream create(@NonNull NormalizedNodeStreamWriter writer, @NonNull SchemaContext schemaContext, @NonNull SchemaNode parentNode)
create(NormalizedNodeStreamWriter, JSONCodecFactory, SchemaNode) instead.JsonParserStream backed by specified NormalizedNodeStreamWriter
and SchemaContext. The stream will be logically rooted at the specified parent node.writer - NormalizedNodeStreamWriter to use for instantiation of normalized nodesschemaContext - SchemaContext to useparentNode - Logical root nodeJsonParserStreamNullPointerException - if any of the arguments are nullpublic JsonParserStream parse(com.google.gson.stream.JsonReader reader)
public void read(com.google.gson.stream.JsonReader in,
AbstractNodeDataWithSchema parent)
throws IOException
IOExceptionpublic void flush()
throws IOException
flush in interface FlushableIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019 OpenDaylight. All rights reserved.