com.enterprisedt.net.ftp.async
Class ExistsResult

java.lang.Object
  extended by com.enterprisedt.net.ftp.async.AsyncResult
      extended by com.enterprisedt.net.ftp.async.RemoteTransferResult
          extended by com.enterprisedt.net.ftp.async.RemoteFileResult
              extended by com.enterprisedt.net.ftp.async.ExistsResult

public class ExistsResult
extends RemoteFileResult

Holds result of checking to see if a remote file exits.

Version:
$Revision: 1.3 $
Author:
Bruce Blackshaw

Field Summary
 
Fields inherited from class com.enterprisedt.net.ftp.async.RemoteFileResult
cancelled, remoteFileName
 
Fields inherited from class com.enterprisedt.net.ftp.async.RemoteTransferResult
DEFAULT_NOTIFY_INTERVAL
 
Constructor Summary
ExistsResult(java.lang.String remoteFileName)
           
 
Method Summary
 void endAsync()
          This method is called to complete the asynchronous operation.
 boolean exists()
          Does the file exist?
 void setExists(boolean exists)
          Set exists status
 
Methods inherited from class com.enterprisedt.net.ftp.async.RemoteFileResult
addProgressMonitor, getRemoteFileName, isCancelled
 
Methods inherited from class com.enterprisedt.net.ftp.async.RemoteTransferResult
getMinTransferNotifyPeriod, getNotifyInterval, setMinTransferNotifyPeriod, setNotifyInterval
 
Methods inherited from class com.enterprisedt.net.ftp.async.AsyncResult
cancelTask, endAsyncCalled, endAsyncInternal, getClient, getLocalContext, getTag, getTask, getTaskDescription, getTaskId, getThrowable, isCompleted, isSuccessful, notifyComplete, setAsIfCompleted, setClient, setEndAsyncCalled, setLocalContext, setSuccessful, setTag, setTask, setThrowable, waitTillComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExistsResult

public ExistsResult(java.lang.String remoteFileName)
Method Detail

exists

public boolean exists()
Does the file exist?

Returns:
true if exists, false otherwise

setExists

public void setExists(boolean exists)
Set exists status

Parameters:
exists - true if exists, false otherwise

endAsync

public void endAsync()
              throws java.io.IOException,
                     FTPException
This method is called to complete the asynchronous operation. The same exceptions will be thrown as if the operation was performed synchronously.

Throws:
java.io.IOException
FTPException


Copyright © 2001-2009 Enterprise Distributed Technologies Ltd. All Rights Reserved.