fcmodeler.pathbinder
Class MedLeaseClient

java.lang.Object
  extended by com.enterprisedt.net.ftp.FTPClient
      extended by fcmodeler.pathbinder.MedLeaseClient
All Implemented Interfaces:
com.enterprisedt.net.ftp.FTPClientInterface, com.enterprisedt.net.ftp.FTPProgressMonitor, Monitorable

public class MedLeaseClient
extends com.enterprisedt.net.ftp.FTPClient
implements Monitorable, com.enterprisedt.net.ftp.FTPProgressMonitor

Author:
Jing Ding fcmodeler.pathbinder MetNet

Field Summary
static java.lang.String BASEGZ
           
static java.lang.String BASEZIP
           
static java.lang.String MONTHLY
           
static java.lang.String SAMPLE
           
 
Fields inherited from class com.enterprisedt.net.ftp.FTPClient
control, cvsId, data, DEFAULT_ENCODING, lastValidReply, messageListener
 
Constructor Summary
MedLeaseClient()
           
 
Method Summary
 void bytesTransferred(long count)
           
 void get(java.io.File localFile, com.enterprisedt.net.ftp.FTPFile remoteFile)
           
 void get(java.io.OutputStream destStream, java.lang.String remoteFile)
           
 byte[] get(java.lang.String remoteFile)
           
 void get(java.lang.String localPath, java.lang.String remoteFile)
           
 java.lang.String getMessage()
           
 double getProgress()
           
 boolean isDeterministic()
           
 boolean isFinished()
           
 boolean isMonitorable()
           
 boolean isRunning()
           
 void mget(java.io.File localDir, com.enterprisedt.net.ftp.FTPFile[] remoteFiles)
           
 void setMonitorable(boolean m)
           
 boolean verifyChecksum(java.io.File original, java.io.File md5file)
           
 
Methods inherited from class com.enterprisedt.net.ftp.FTPClient
abort, account, cancelResume, cancelTransfer, cdup, chdir, checkConnection, clearSOCKS, connect, connected, debugResponses, delete, dir, dir, dir, dirDetails, features, getBuildTimestamp, getConnectMode, getControlEncoding, getControlPort, getLastValidReply, getMessageListener, getMonitorInterval, getRemoteAddr, getRemoteHost, getTimeout, getTransferBufferSize, getType, getVersion, help, initialize, initSOCKS, initSOCKSAuthentication, isStrictReturnCodes, list, list, login, login, mkdir, modtime, noOperation, password, put, put, put, put, put, put, pwd, quit, quote, readChar, readChunk, readLine, rename, resume, rmdir, setActiveIPAddress, setActivePortRange, setConnectMode, setControlEncoding, setControlPort, setFTPFileFactory, setMessageListener, setParserLocale, setPORTIP, setProgressMonitor, setProgressMonitor, setRemoteAddr, setRemoteHost, setStrictReturnCodes, setTimeout, setTransferBufferSize, setType, site, size, system, user, validateTransfer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASEZIP

public static final java.lang.String BASEZIP
See Also:
Constant Field Values

BASEGZ

public static final java.lang.String BASEGZ
See Also:
Constant Field Values

MONTHLY

public static final java.lang.String MONTHLY
See Also:
Constant Field Values

SAMPLE

public static final java.lang.String SAMPLE
See Also:
Constant Field Values
Constructor Detail

MedLeaseClient

public MedLeaseClient()
               throws java.io.IOException,
                      com.enterprisedt.net.ftp.FTPException,
                      java.security.NoSuchAlgorithmException
Throws:
java.io.IOException
com.enterprisedt.net.ftp.FTPException
java.security.NoSuchAlgorithmException
Method Detail

setMonitorable

public void setMonitorable(boolean m)
Specified by:
setMonitorable in interface Monitorable

isMonitorable

public boolean isMonitorable()
Specified by:
isMonitorable in interface Monitorable

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface Monitorable
Returns:

getProgress

public double getProgress()
Specified by:
getProgress in interface Monitorable
Returns:

isFinished

public boolean isFinished()
Specified by:
isFinished in interface Monitorable
Returns:

isDeterministic

public boolean isDeterministic()
Specified by:
isDeterministic in interface Monitorable
Returns:

bytesTransferred

public void bytesTransferred(long count)
Specified by:
bytesTransferred in interface com.enterprisedt.net.ftp.FTPProgressMonitor

isRunning

public boolean isRunning()
Specified by:
isRunning in interface Monitorable
Returns:

get

public void get(java.io.OutputStream destStream,
                java.lang.String remoteFile)
         throws java.io.IOException,
                com.enterprisedt.net.ftp.FTPException
Specified by:
get in interface com.enterprisedt.net.ftp.FTPClientInterface
Overrides:
get in class com.enterprisedt.net.ftp.FTPClient
Throws:
java.io.IOException
com.enterprisedt.net.ftp.FTPException

get

public void get(java.lang.String localPath,
                java.lang.String remoteFile)
         throws java.io.IOException,
                com.enterprisedt.net.ftp.FTPException
Specified by:
get in interface com.enterprisedt.net.ftp.FTPClientInterface
Overrides:
get in class com.enterprisedt.net.ftp.FTPClient
Throws:
java.io.IOException
com.enterprisedt.net.ftp.FTPException

get

public byte[] get(java.lang.String remoteFile)
           throws java.io.IOException,
                  com.enterprisedt.net.ftp.FTPException
Specified by:
get in interface com.enterprisedt.net.ftp.FTPClientInterface
Overrides:
get in class com.enterprisedt.net.ftp.FTPClient
Throws:
java.io.IOException
com.enterprisedt.net.ftp.FTPException

get

public void get(java.io.File localFile,
                com.enterprisedt.net.ftp.FTPFile remoteFile)
         throws java.io.IOException,
                com.enterprisedt.net.ftp.FTPException
Throws:
java.io.IOException
com.enterprisedt.net.ftp.FTPException

mget

public void mget(java.io.File localDir,
                 com.enterprisedt.net.ftp.FTPFile[] remoteFiles)
          throws java.io.IOException,
                 com.enterprisedt.net.ftp.FTPException
Throws:
java.io.IOException
com.enterprisedt.net.ftp.FTPException

verifyChecksum

public boolean verifyChecksum(java.io.File original,
                              java.io.File md5file)
                       throws java.io.IOException
Throws:
java.io.IOException