Class DataTreeCandidateInputOutput
java.lang.Object
org.opendaylight.yangtools.yang.data.codec.binfmt.DataTreeCandidateInputOutput
Utility serialization/deserialization for
DataTreeCandidate
. Note that this utility does not maintain
before-image information across serialization.-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull DataTreeCandidate
Read aDataTreeCandidate
from aNormalizedNodeDataInput
.static @NonNull DataTreeCandidate
static void
writeDataTreeCandidate
(NormalizedNodeDataOutput out, DataTreeCandidate candidate) Write aDataTreeCandidate
to specifiedNormalizedNodeDataOutput
.
-
Method Details
-
readDataTreeCandidate
public static @NonNull DataTreeCandidate readDataTreeCandidate(NormalizedNodeDataInput in) throws IOException Read aDataTreeCandidate
from aNormalizedNodeDataInput
. Note that if multiple invocations are expected,readDataTreeCandidate(NormalizedNodeDataInput, ReusableStreamReceiver)
may offer better throughput.- Parameters:
in
- the input- Returns:
- a
DataTreeCandidate
- Throws:
IOException
- when an I/O error occursNullPointerException
- ifin
isnull
-
readDataTreeCandidate
public static @NonNull DataTreeCandidate readDataTreeCandidate(NormalizedNodeDataInput in, ReusableStreamReceiver receiver) throws IOException - Parameters:
in
- the inputreceiver
- the receiver- Returns:
- a
DataTreeCandidate
- Throws:
IOException
- when an I/O error occursNullPointerException
- if any argument isnull
-
writeDataTreeCandidate
public static void writeDataTreeCandidate(NormalizedNodeDataOutput out, DataTreeCandidate candidate) throws IOException Write aDataTreeCandidate
to specifiedNormalizedNodeDataOutput
.- Parameters:
out
- the outputcandidate
- the candidate- Throws:
IOException
- when an I/O error occursNullPointerException
- if any argument isnull
-