netbula.ORPC
Class XDTFile
- XDT
public class XDTFile
extends java.lang.Object
This class can be used to transfer a file in an RPC call.
The file data is transfered through the XDR stream.
See filexfer sample application for its usage
XDTFile
public XDTFile(String Filename)
Filename - the name of the file to be sent
byteCount
public int byteCount()
- Number of bytes transfered
receivedFilepath
public String receivedFilepath()
Called by receiver only
- the filename that has been received
savedFilename
public String savedFilename()
Called by receiver only
- the filename that has been saved to
xdr
public void xdr(XDR xdrs)
throws XDRErrorEncoding/decoding the object itself through the XDR stream
- xdr in interface XDT