Package org.acplt.oncrpc
Interface XdrAble
- All Known Implementing Classes:
OncRpcDumpResult,OncRpcGetPortResult,OncRpcServerIdent,XdrBoolean,XdrByte,XdrBytes,XdrChar,XdrDouble,XdrDynamicOpaque,XdrEnum,XdrFloat,XdrInt,XdrLong,XdrOpaque,XdrShort,XdrString,XdrUnion,XdrVoid
public interface XdrAble
Defines the interface for all classes that should be able to be
serialized into XDR streams, and deserialized or constructed from
XDR streams.
- Version:
- $Revision: 1.1 $ $Date: 2003/08/13 12:03:43 $ $State: Exp $ $Locker: $
- Author:
- Harald Albrecht
-
Method Summary
Modifier and TypeMethodDescriptionvoidDecodes -- that is: deserializes -- an object from a XDR stream in compliance to RFC 1832.voidEncodes -- that is: serializes -- an object into a XDR stream in compliance to RFC 1832.
-
Method Details
-
xdrEncode
Encodes -- that is: serializes -- an object into a XDR stream in compliance to RFC 1832.- Parameters:
xdr- XDR stream to which information is sent for encoding.- Throws:
OncRpcException- if an ONC/RPC error occurs.IOException- if an I/O error occurs.
-
xdrDecode
Decodes -- that is: deserializes -- an object from a XDR stream in compliance to RFC 1832.- Parameters:
xdr- XDR stream from which decoded information is retrieved.- Throws:
OncRpcException- if an ONC/RPC error occurs.IOException- if an I/O error occurs.
-