Class SerializationUtils
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.node.utils.stream.SerializationUtils
-
public final class SerializationUtils extends Object
Provides various utility methods for serialization and de-serialization.- Author:
- Thomas Pantelis
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SerializationUtils.Applier<T>
-
Method Summary
-
-
-
Method Detail
-
readNormalizedNode
public static Optional<NormalizedNode<?,?>> readNormalizedNode(DataInput in) throws IOException
- Throws:
IOException
-
writeNormalizedNode
public static void writeNormalizedNode(DataOutput out, @Nullable NormalizedNode<?,?> node) throws IOException
- Throws:
IOException
-
writeNormalizedNode
public static void writeNormalizedNode(DataOutput out, NormalizedNodeStreamVersion version, @Nullable NormalizedNode<?,?> node) throws IOException
- Throws:
IOException
-
writeNormalizedNode
@Deprecated(forRemoval=true) public static void writeNormalizedNode(DataOutput out, NormalizedNodeStreamVersion version, @Nullable NormalizedNode<?,?> node) throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
readPath
public static YangInstanceIdentifier readPath(DataInput in) throws IOException
- Throws:
IOException
-
writePath
public static void writePath(DataOutput out, @NonNull YangInstanceIdentifier path) throws IOException
- Throws:
IOException
-
writePath
public static void writePath(DataOutput out, NormalizedNodeStreamVersion version, @NonNull YangInstanceIdentifier path) throws IOException
- Throws:
IOException
-
writePath
@Deprecated(forRemoval=true) public static void writePath(DataOutput out, NormalizedNodeStreamVersion version, @NonNull YangInstanceIdentifier path) throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
readNodeAndPath
public static <T> void readNodeAndPath(DataInput in, T instance, SerializationUtils.Applier<T> applier) throws IOException
- Throws:
IOException
-
writeNodeAndPath
public static void writeNodeAndPath(DataOutput out, NormalizedNodeStreamVersion version, YangInstanceIdentifier path, NormalizedNode<?,?> node) throws IOException
- Throws:
IOException
-
writeNodeAndPath
public static void writeNodeAndPath(DataOutput out, YangInstanceIdentifier path, NormalizedNode<?,?> node) throws IOException
- Throws:
IOException
-
readPathAndNode
public static <T> void readPathAndNode(DataInput in, T instance, SerializationUtils.Applier<T> applier) throws IOException
- Throws:
IOException
-
writePathAndNode
public static void writePathAndNode(DataOutput out, NormalizedNodeStreamVersion version, YangInstanceIdentifier path, NormalizedNode<?,?> node) throws IOException
- Throws:
IOException
-
writePathAndNode
public static void writePathAndNode(DataOutput out, YangInstanceIdentifier path, NormalizedNode<?,?> node) throws IOException
- Throws:
IOException
-
-