public abstract class TransportListener extends Object
( STARTED PROGRESSED* )*The methods in this class do nothing.
| Modifier | Constructor and Description |
|---|---|
protected |
TransportListener()
Enables subclassing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
transportProgressed(ByteBuffer data)
Notifies the listener about some progress in the data transfer.
|
void |
transportStarted(long dataOffset,
long dataLength)
Notifies the listener about the start of the data transfer.
|
public void transportStarted(long dataOffset,
long dataLength)
throws org.eclipse.aether.transfer.TransferCancelledException
dataOffset - The byte offset in the resource at which the transfer starts, must not be negative.dataLength - The total number of bytes in the resource or -1 if the length is unknown.org.eclipse.aether.transfer.TransferCancelledException - If the transfer should be aborted.public void transportProgressed(ByteBuffer data) throws org.eclipse.aether.transfer.TransferCancelledException
data - The (read-only) buffer holding the bytes that have just been tranferred, must not be null.org.eclipse.aether.transfer.TransferCancelledException - If the transfer should be aborted.Copyright © 2010-2015 The Eclipse Foundation. All Rights Reserved.