arlut.csd.ganymede.client
Class xmlclientPrintReceiver

java.lang.Object
  |
  +--arlut.csd.ganymede.client.xmlclientPrintReceiver
All Implemented Interfaces:
FileReceiver, java.rmi.Remote

class xmlclientPrintReceiver
extends java.lang.Object
implements FileReceiver

This class is used to act as a receiver of server-transmitted XML materials by the XML client. The server talks to this receiver when the xmlclient is given the -dumpschema or -dumpdata command line parameters.


Constructor Summary
(package private) xmlclientPrintReceiver()
           
 
Method Summary
 arlut.csd.ganymede.ReturnVal end(boolean completed)
          This method is called to notify the FileReceiver that no more of the file will be transmitted.
 arlut.csd.ganymede.ReturnVal sendBytes(byte[] bytes)
          This method is used to send chunks of a file, in order, to the FileReceiver.
 arlut.csd.ganymede.ReturnVal sendBytes(byte[] bytes, int offset, int len)
          This method is used to send chunks of a file, in order, to the FileReceiver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

xmlclientPrintReceiver

xmlclientPrintReceiver()
Method Detail

sendBytes

public arlut.csd.ganymede.ReturnVal sendBytes(byte[] bytes)

This method is used to send chunks of a file, in order, to the FileReceiver. The FileReceiver can return a non-successful ReturnVal if it doesn't want to stop receiving the file. A null return value indicates success, keep sending.

Specified by:
sendBytes in interface FileReceiver

sendBytes

public arlut.csd.ganymede.ReturnVal sendBytes(byte[] bytes,
                                              int offset,
                                              int len)

This method is used to send chunks of a file, in order, to the FileReceiver. The FileReceiver can return a non-successful ReturnVal if it doesn't want to stop receiving the file. A null return value indicates success, keep sending.

Specified by:
sendBytes in interface FileReceiver

end

public arlut.csd.ganymede.ReturnVal end(boolean completed)

This method is called to notify the FileReceiver that no more of the file will be transmitted. The boolean parameter will be true if the file was completely sent, or false if the transmission is being aborted by the sender for some reason.

Specified by:
end in interface FileReceiver
Returns:
Returns true if the FileReceiver successfully received the file in its entirety.