com.enterprisedt.net.ftp.async
Class DirectoryListResult

java.lang.Object
  extended by com.enterprisedt.net.ftp.async.AsyncResult
      extended by com.enterprisedt.net.ftp.async.DirectoryListResult

public class DirectoryListResult
extends AsyncResult

Holds the result of listing a directory

Version:
$Revision: 1.8 $
Author:
Bruce Blackshaw

Constructor Summary
DirectoryListResult(java.lang.String directory)
           
 
Method Summary
 FTPFile[] endAsync()
          This method is called to complete the asynchronous operation.
 FTPFile[] getListing()
          Get the listing that has been returned
 java.lang.String getRemoteDirectory()
          Get the name of the listed directory
 void setListing(FTPFile[] array)
          Set the listing that has been returned
 void setRemoteDirectory(java.lang.String remoteDirectory)
          Set the name of the listed directory
 
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

DirectoryListResult

public DirectoryListResult(java.lang.String directory)
Method Detail

endAsync

public FTPFile[] endAsync()
                   throws FTPException,
                          java.io.IOException
This method is called to complete the asynchronous operation. If the operation is not completed, this method will block until it has. It is normally called from within a callback, which ensures that the operation has indeed already completed.

Throws:
java.io.IOException
FTPException

getListing

public FTPFile[] getListing()
Get the listing that has been returned

Returns:
directory listing

setListing

public void setListing(FTPFile[] array)
Set the listing that has been returned

Parameters:
listing - new listing

getRemoteDirectory

public java.lang.String getRemoteDirectory()
Get the name of the listed directory

Returns:
directory name

setRemoteDirectory

public void setRemoteDirectory(java.lang.String remoteDirectory)
Set the name of the listed directory

Parameters:
remoteDirectory -


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