if(retrReply.getLines().size() == 1) { (ReplyWorker.readReply(socketProvider)).dumpReply(); }
    public void fxpFile(FTPConnection destination, FTPFile fromFile,FTPFile toFile) throws IOException,FtpWorkflowException,FtpIOException    {    	setConnectionStatus(FXPING_FILE_STARTED);        fireConnectionStatusChanged(new FTPEvent(this, getConnectionStatus(), fromFile, toFile));        setConnectionStatus(FXP_FILE);    	        // send PASV to source site        Command pasvCommand = new Command(Command.PASV);        Reply pasvReply = sendCommand(pasvCommand);        pasvReply.dumpReply();        pasvReply.validate();                 // parse the host and port from reply        List<String> lines = pasvReply.getLines();        if(lines.size() != 1)            throw new UnkownReplyStateException("PASV Reply has to have a size of 1 entry but it has: " + lines.size());        String line = lines.get(0);        line = line.substring(line.indexOf('(')+1,line.lastIndexOf(')'));                        // send PORT to destination site        Command portCommand = new Command(Command.PORT, line);        Reply portReply = destination.sendCommand(portCommand);        portReply.dumpReply();        portReply.validate();                // send STOR command to destination site        Command storeCommand = new Command(Command.STOR, toFile.getName());        Reply storeReply = destination.sendCommand(storeCommand);        storeReply.dumpReply();        storeReply.validate();                // send RETR command to source site        Command retrCommand = new Command(Command.RETR,fromFile.getName());        Reply retrReply = sendCommand(retrCommand);        retrReply.dumpReply();        retrReply.validate();            	setConnectionStatus(FXPING_FILE_ENDED);        fireConnectionStatusChanged(new FTPEvent(this, getConnectionStatus(), fromFile, toFile));    }