T - typical an enum class, see above.public class XdrEnum<T extends HasEncoding<T>> extends Object implements XdrAble
| Constructor and Description |
|---|
XdrEnum(T ee) |
XdrEnum(T ee,
XdrDecodingStream xdr) |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
create(HasEncoding<T> tt,
XdrDecodingStream xdr) |
static <T> HasEncoding<T> |
create(int e,
HasEncoding<T> tt) |
static <T> T |
fromEncoding(int e,
HasEncoding<T> tt) |
T |
getValue() |
HasEncoding<T> |
getWrapped() |
String |
toString() |
void |
xdrDecode(XdrDecodingStream xdr)
Decodes -- that is: deserializes -- an object from a XDR stream in
compliance to RFC 1832.
|
void |
xdrEncode(XdrEncodingStream xdr)
Encodes -- that is: serializes -- an object into a XDR stream in
compliance to RFC 1832.
|
public XdrEnum(T ee)
public XdrEnum(T ee, XdrDecodingStream xdr) throws OncRpcException, IOException
OncRpcExceptionIOExceptionpublic void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException
XdrAblexdrEncode in interface XdrAblexdr - XDR stream to which information is sent for encoding.OncRpcException - if an ONC/RPC error occurs.IOException - if an I/O error occurs.public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException
XdrAblexdrDecode in interface XdrAblexdr - XDR stream from which decoded information is retrieved.OncRpcException - if an ONC/RPC error occurs.IOException - if an I/O error occurs.public HasEncoding<T> getWrapped()
public T getValue()
public static <T> T create(HasEncoding<T> tt, XdrDecodingStream xdr) throws OncRpcException, IOException
OncRpcExceptionIOExceptionpublic static <T> HasEncoding<T> create(int e, HasEncoding<T> tt) throws OncRpcException
OncRpcExceptionpublic static <T> T fromEncoding(int e,
HasEncoding<T> tt)
Copyright © 2025. All rights reserved.