| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static @NonNull JsonParserStream |
create(@NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter writer,
@NonNull JSONCodecFactory codecFactory)
|
static @NonNull JsonParserStream |
create(@NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter writer,
@NonNull JSONCodecFactory codecFactory,
@NonNull org.opendaylight.yangtools.yang.model.api.SchemaNode parentNode)
|
static @NonNull JsonParserStream |
createLenient(@NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter writer,
@NonNull JSONCodecFactory codecFactory)
|
static @NonNull JsonParserStream |
createLenient(@NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter writer,
@NonNull JSONCodecFactory codecFactory,
@NonNull org.opendaylight.yangtools.yang.model.api.SchemaNode parentNode)
|
void |
flush() |
JsonParserStream |
parse(com.google.gson.stream.JsonReader reader) |
void |
read(com.google.gson.stream.JsonReader in,
org.opendaylight.yangtools.yang.data.util.AbstractNodeDataWithSchema<?> parent) |
public static @NonNull JsonParserStream create(@NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.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 org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter writer, @NonNull JSONCodecFactory codecFactory, @NonNull org.opendaylight.yangtools.yang.model.api.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 nullpublic static @NonNull JsonParserStream createLenient(@NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.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.
Returned parser will treat incoming JSON data leniently:
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 createLenient(@NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter writer, @NonNull JSONCodecFactory codecFactory, @NonNull org.opendaylight.yangtools.yang.model.api.SchemaNode parentNode)
JsonParserStream backed by specified NormalizedNodeStreamWriter
and JSONCodecFactory. The stream will be logically rooted at the specified parent node.
Returned parser will treat incoming JSON data leniently:
writer - NormalizedNodeStreamWriter to use for instantiation of normalized nodescodecFactory - JSONCodecFactory to use for parsing leavesparentNode - 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,
org.opendaylight.yangtools.yang.data.util.AbstractNodeDataWithSchema<?> parent)
throws IOException
IOExceptionpublic void flush()
throws IOException
flush in interface FlushableIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2020 OpenDaylight. All rights reserved.