org.apache.commons.net.io
public class CopyStreamEvent extends EventObject
Version: $Id: CopyStreamEvent.java 489397 2006-12-21 16:28:51Z rwinston $
See Also: CopyStreamListener CopyStreamAdapter Util
Field Summary | |
---|---|
static long | UNKNOWN_STREAM_SIZE
Constant used to indicate the stream size is unknown. |
Constructor Summary | |
---|---|
CopyStreamEvent(Object source, long totalBytesTransferred, int bytesTransferred, long streamSize)
Creates a new CopyStreamEvent instance. |
Method Summary | |
---|---|
int | getBytesTransferred()
Returns the number of bytes transferred by the write that triggered
the event. |
long | getStreamSize()
Returns the size of the stream being copied.
|
long | getTotalBytesTransferred()
Returns the total number of bytes transferred so far by the copy
operation. |
Parameters: source The source of the event. totalBytesTransferred The total number of bytes transferred so
far during a copy operation. bytesTransferred The number of bytes transferred during the
write that triggered the CopyStreamEvent. streamSize The number of bytes in the stream being copied.
This may be set to UNKNOWN_STREAM_SIZE
if the
size is unknown.
Returns: The number of bytes transferred by the write that triggered the vent.
UNKNOWN_STREAM_SIZE
if the
size is unknown.Returns: The size of the stream being copied.
Returns: The total number of bytes transferred so far by the copy operation.