Class TransportListenerNotifyingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.eclipse.aether.spi.connector.transport.TransportListenerNotifyingInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class TransportListenerNotifyingInputStream extends java.io.FilterInputStream
AnInputStreamwrapper that notifies aTransportListenerabout progress when data is read. It throwsInterruptedIOExceptionwith a cause ofTransferCancelledExceptionwhen the transfer is cancelled in the transport listener. The start notification is sent lazily on the first read.
-
-
Constructor Summary
Constructors Constructor Description TransportListenerNotifyingInputStream(java.io.InputStream in, TransportListener transportListener, long size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intread()intread(byte[] b)intread(byte[] b, int off, int len)-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
-
-
-
-
Constructor Detail
-
TransportListenerNotifyingInputStream
public TransportListenerNotifyingInputStream(java.io.InputStream in, TransportListener transportListener, long size)
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException
- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
-