程序包 | 说明 |
---|---|
com.fr.ftp.client |
FTP and FTPS support classes
|
com.fr.ftp.io |
Utility classes for IO support.
|
限定符和类型 | 方法和说明 |
---|---|
CopyStreamListener |
FTPClient.getCopyStreamListener()
Obtain the currently active listener.
|
限定符和类型 | 方法和说明 |
---|---|
void |
FTPClient.setCopyStreamListener(CopyStreamListener listener)
Set the listener to be used when performing store/retrieve operations.
|
限定符和类型 | 类和说明 |
---|---|
class |
CopyStreamAdapter
The CopyStreamAdapter will relay CopyStreamEvents to a list of listeners
when either of its bytesTransferred() methods are called.
|
限定符和类型 | 方法和说明 |
---|---|
void |
CopyStreamAdapter.addCopyStreamListener(CopyStreamListener listener)
Registers a CopyStreamListener to receive CopyStreamEvents.
|
static long |
Util.copyReader(java.io.Reader source,
java.io.Writer dest,
int bufferSize,
long streamSize,
CopyStreamListener listener)
Copies the contents of a Reader to a Writer using a
copy buffer of a given size and notifies the provided
CopyStreamListener of the progress of the copy operation by calling
its bytesTransferred(long, int) method after each write to the
destination.
|
static long |
Util.copyStream(java.io.InputStream source,
java.io.OutputStream dest,
int bufferSize,
long streamSize,
CopyStreamListener listener)
Copies the contents of an InputStream to an OutputStream using a
copy buffer of a given size and notifies the provided
CopyStreamListener of the progress of the copy operation by calling
its bytesTransferred(long, int) method after each write to the
destination.
|
static long |
Util.copyStream(java.io.InputStream source,
java.io.OutputStream dest,
int bufferSize,
long streamSize,
CopyStreamListener listener,
boolean flush)
Copies the contents of an InputStream to an OutputStream using a
copy buffer of a given size and notifies the provided
CopyStreamListener of the progress of the copy operation by calling
its bytesTransferred(long, int) method after each write to the
destination.
|
void |
CopyStreamAdapter.removeCopyStreamListener(CopyStreamListener listener)
Unregisters a CopyStreamListener.
|