public interface TransferEvent
TransferListener
Modifier and Type | Interface and Description |
---|---|
static class |
TransferEvent.EventType
The type of the event.
|
static class |
TransferEvent.RequestType
The type of the request/transfer.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getDataBuffer()
Gets the byte buffer holding the transferred bytes since the last event.
|
int |
getDataLength()
Gets the number of bytes that have been transferred since the last event.
|
Exception |
getException()
Gets the error that occurred during the transfer.
|
TransferEvent.RequestType |
getRequestType()
Gets the type of the request/transfer.
|
TransferResource |
getResource()
Gets the resource that is being transferred.
|
long |
getTransferredBytes()
Gets the total number of bytes that have been transferred since the download/upload was started.
|
TransferEvent.EventType |
getType()
Gets the type of the event.
|
TransferEvent.EventType getType()
null
.TransferEvent.RequestType getRequestType()
null
.TransferResource getResource()
null
.long getTransferredBytes()
getDataLength()
ByteBuffer getDataBuffer()
null
if not applicable to the event, i.e. if the event type is not
TransferEvent.EventType.PROGRESSED
.int getDataLength()
getTransferredBytes()
Exception getException()
null
if none.Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.