public class CopyStreamEvent
extends java.util.EventObject
CopyStreamListener
,
CopyStreamAdapter
,
Util
,
序列化表格限定符和类型 | 字段和说明 |
---|---|
static long |
UNKNOWN_STREAM_SIZE
Constant used to indicate the stream size is unknown.
|
构造器和说明 |
---|
CopyStreamEvent(java.lang.Object source,
long totalBytesTransferred,
int bytesTransferred,
long streamSize)
Creates a new CopyStreamEvent instance.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
java.lang.String |
toString() |
public static final long UNKNOWN_STREAM_SIZE
public CopyStreamEvent(java.lang.Object source, long totalBytesTransferred, int bytesTransferred, long streamSize)
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.public int getBytesTransferred()
public long getTotalBytesTransferred()
public long getStreamSize()
UNKNOWN_STREAM_SIZE
if the
size is unknown.public java.lang.String toString()
toString
在类中 java.util.EventObject