com.distinct.rpc
Class XDRstring

java.lang.Object
  |
  +--com.distinct.rpc.XDRstring
All Implemented Interfaces:
java.io.Serializable, XDRType, XMLRPCType

public class XDRstring
extends java.lang.Object
implements XDRType, XMLRPCType

This wrapper class is used to encode or decode a parameter of type String to or from an XDRStream.

See Also:
Serialized Form

Field Summary
 java.lang.String value
           
 
Constructor Summary
XDRstring()
          Crates an object of class XDRstring with unintialized value.
XDRstring(java.lang.String val)
          Crates an object of class XDRstring and initializes it with a string.
 
Method Summary
 void obj_decode(java.lang.Object obj)
          Decodes an object of class XDRstring from a String object.
 java.lang.Object obj_encode()
          Encodes an object of class XDRstring into a String object.
 void xdr_decode(XDRStream xdrs)
          Decodes an object of class XDRstring in compliance to RFC 1832 (XDR).
 void xdr_encode(XDRStream xdrs)
          Encodes an object of class XDRstring in compliance to RFC 1832 (XDR).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public java.lang.String value
Constructor Detail

XDRstring

public XDRstring()
Crates an object of class XDRstring with unintialized value.


XDRstring

public XDRstring(java.lang.String val)
Crates an object of class XDRstring and initializes it with a string.

Parameters:
val - The value.
Method Detail

xdr_encode

public void xdr_encode(XDRStream xdrs)
Encodes an object of class XDRstring in compliance to RFC 1832 (XDR).

Specified by:
xdr_encode in interface XDRType
Parameters:
xdrs - The XDR output stream.

xdr_decode

public void xdr_decode(XDRStream xdrs)
                throws RPCError
Decodes an object of class XDRstring in compliance to RFC 1832 (XDR).

Specified by:
xdr_decode in interface XDRType
Parameters:
xdrs - The XDR input stream.
Throws:
RPCError - When the call fails for any reason.

obj_encode

public java.lang.Object obj_encode()
Encodes an object of class XDRstring into a String object.

Specified by:
obj_encode in interface XMLRPCType
Throws:
RPCError - When the call fails for any reason.

obj_decode

public void obj_decode(java.lang.Object obj)
                throws RPCError
Decodes an object of class XDRstring from a String object.

Specified by:
obj_decode in interface XMLRPCType
Throws:
RPCError - When the call fails for any reason.