Interface WritableObject
-
- All Known Subinterfaces:
WritableIdentifier
- All Known Implementing Classes:
AbstractQName
,BiMapYangNamespaceContext
,DatastoreIdentifier
,MountPointIdentifier
,QName
,QNameModule
,QualifiedQName
,UnqualifiedQName
@Beta public interface WritableObject
Marker interface for an object which can be written out to anDataOutput
. Classes implementing this interface should declare a correspondingpublic static CLASS readFrom(DataInput in) throws IOException;
The serialization format provided by this abstraction does not guarantee versioning. Callers are responsible for ensuring the source stream is correctly positioned.
- Author:
- Robert Varga
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
writeTo(@NonNull DataOutput out)
Serialize this object into aDataOutput
as a fixed-format stream.
-
-
-
Method Detail
-
writeTo
void writeTo(@NonNull DataOutput out) throws IOException
Serialize this object into aDataOutput
as a fixed-format stream.- Parameters:
out
- Data output- Throws:
IOException
- if an I/O error occursNullPointerException
- if out is null
-
-