Interface WritableObject
- All Known Subinterfaces:
WritableIdentifier
- All Known Implementing Classes:
AbstractQName
,BiMapYangNamespaceContext
,DatastoreIdentifier
,MountPointIdentifier
,ObjectIdentifier
,QName
,QNameModule
,UnresolvedQName
,UnresolvedQName.Qualified
,UnresolvedQName.Unqualified
Marker interface for an object which can be written out to an
DataOutput
. Classes implementing this
interface should declare a corresponding
public 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
Modifier and TypeMethodDescriptionvoid
writeTo
(@NonNull DataOutput out) Serialize this object into aDataOutput
as a fixed-format stream.
-
Method Details
-
writeTo
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
-