public abstract class TransportListener extends java.lang.Object
( STARTED PROGRESSED* )*The methods in this class do nothing.
| Modifier | Constructor | Description |
|---|---|---|
protected |
TransportListener() |
Enables subclassing.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
transportProgressed(java.nio.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.
|
protected TransportListener()
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(java.nio.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.