rendered paste body public void receiveFile(String path, char type, long position, long speed)
throws IOException, SlaveUnavailableException {
_path = path;
String index = _rslave.issueReceiveToSlave(path, type, position,
getTransferIndex(),speed);
_state = Transfer.TRANSFER_RECEIVING_UPLOAD;
try {
_rslave.fetchResponse(index);
} catch (RemoteIOException e) {
throw (IOException) e.getCause();
}
}
public void sendFile(String path, char type, long position, long speed)
throws IOException, SlaveUnavailableException {
_path = path;
String index = _rslave.issueSendToSlave(path, type, position,
getTransferIndex(),speed);
_state = Transfer.TRANSFER_SENDING_DOWNLOAD;
try {
_rslave.fetchResponse(index);
} catch (RemoteIOException e) {
throw (IOException) e.getCause();
}
}
public String toString() {
try {