public void get(String remoteFileName,
                    DataSink sink,
                    MarkerListener mListener)
        throws IOException, ClientException, ServerException {
        checkTransferParamsGet();

        localServer.store(sink);
        controlChannel.write(new Command("RETR", remoteFileName));

        transferRunSingleThread(localServer.getControlChannel(), mListener);
    }
public void get ( String remoteFileName , DataSink sink , MarkerListener mListener ) throws IOException , ClientException , ServerException { checkTransferParamsGet ( ) ; localServer . store ( sink ) ; controlChannel . write ( new Command ( "RETR" , remoteFileName ) ) ; transferRunSingleThread ( localServer . getControlChannel ( ) , mListener ) ; }
Retrieves the file from the remote server.
@param remoteFileName remote file name
@param sink sink to which the data will be written
@param mListener restart marker listener (currently not used)