Interface NormalizedNodeDataInput
-
- All Superinterfaces:
DataInput
@Deprecated(forRemoval=true) @Beta public interface NormalizedNodeDataInput extends DataInput
Deprecated, for removal: This API element is subject to removal in a future version.UseNormalizedNodeDataInput
instead.Interface for readingNormalizedNode
s,YangInstanceIdentifier
s,YangInstanceIdentifier.PathArgument
s andSchemaPath
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description NormalizedNodeStreamVersion
getVersion()
Deprecated, for removal: This API element is subject to removal in a future version.Return the version of the underlying input stream.default NormalizedNode<?,?>
readNormalizedNode()
Deprecated, for removal: This API element is subject to removal in a future version.Read a normalized node from the reader.default NormalizedNode<?,?>
readNormalizedNode(ReusableStreamReceiver receiver)
Deprecated, for removal: This API element is subject to removal in a future version.Read a normalized node from the reader, using specified writer to construct the result.default Optional<NormalizedNode<?,?>>
readOptionalNormalizedNode()
Deprecated, for removal: This API element is subject to removal in a future version.YangInstanceIdentifier.PathArgument
readPathArgument()
Deprecated, for removal: This API element is subject to removal in a future version.@NonNull QName
readQName()
Deprecated, for removal: This API element is subject to removal in a future version.SchemaPath
readSchemaPath()
Deprecated, for removal: This API element is subject to removal in a future version.YangInstanceIdentifier
readYangInstanceIdentifier()
Deprecated, for removal: This API element is subject to removal in a future version.void
streamNormalizedNode(NormalizedNodeStreamWriter writer)
Deprecated, for removal: This API element is subject to removal in a future version.Interpret current stream position as a NormalizedNode, stream its events into a NormalizedNodeStreamWriter.-
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
-
-
-
-
Method Detail
-
streamNormalizedNode
void streamNormalizedNode(NormalizedNodeStreamWriter writer) throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.Interpret current stream position as a NormalizedNode, stream its events into a NormalizedNodeStreamWriter.- Parameters:
writer
- Writer to emit events to- Throws:
IOException
- if an error occursIllegalStateException
- if the dictionary has been detachedNullPointerException
- ifwriter
is null
-
readNormalizedNode
default NormalizedNode<?,?> readNormalizedNode() throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.Read a normalized node from the reader.- Returns:
- Next node from the stream, or null if end of stream has been reached.
- Throws:
IOException
- if an error occursIllegalStateException
- if the dictionary has been detached
-
readNormalizedNode
default NormalizedNode<?,?> readNormalizedNode(ReusableStreamReceiver receiver) throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.Read a normalized node from the reader, using specified writer to construct the result.- Parameters:
receiver
- Reusable receiver to, expected to be reset- Returns:
- Next node from the stream, or null if end of stream has been reached.
- Throws:
IOException
- if an error occursIllegalStateException
- if the dictionary has been detached
-
readYangInstanceIdentifier
YangInstanceIdentifier readYangInstanceIdentifier() throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
readQName
@NonNull QName readQName() throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
readPathArgument
YangInstanceIdentifier.PathArgument readPathArgument() throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
readSchemaPath
SchemaPath readSchemaPath() throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
getVersion
NormalizedNodeStreamVersion getVersion() throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.Return the version of the underlying input stream.- Returns:
- Stream version
- Throws:
IOException
- if the version cannot be ascertained
-
readOptionalNormalizedNode
default Optional<NormalizedNode<?,?>> readOptionalNormalizedNode() throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
-