Interface WritableObject
- All Known Subinterfaces:
RevisionUnion
,WritableIdentifier
- All Known Implementing Classes:
AbstractQName
,AnnotationName
,BiMapYangNamespaceContext
,DatastoreIdentifier
,MountPointLabel
,NotRevision
,ObjectIdentifier
,QName
,QNameModule
,Revision
,UnresolvedQName
,UnresolvedQName.Qualified
,UnresolvedQName.Unqualified
,XMLNamespace
,YangDataName
@NonNullByDefault
public interface WritableObject
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. Various utility method for implementing the desired
serialization format are available in WritableObjects
.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTo
(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
- ifout
isnull
-