Class TransportListenerNotifyingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.eclipse.aether.spi.connector.transport.TransportListenerNotifyingInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
An
InputStream wrapper that notifies a TransportListener about progress when data is read.
It throws InterruptedIOException with a cause of TransferCancelledException when the transfer is cancelled in the transport listener.
The start notification is sent lazily on the first read.-
Field Summary
Fields inherited from class FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionTransportListenerNotifyingInputStream(InputStream in, TransportListener transportListener, long size) -
Method Summary
Methods inherited from class FilterInputStream
available, close, mark, markSupported, reset, skipMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
TransportListenerNotifyingInputStream
public TransportListenerNotifyingInputStream(InputStream in, TransportListener transportListener, long size)
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-