Package aQute.bnd.http
Class ProgressWrappingStream
- java.lang.Object
-
- java.io.InputStream
-
- aQute.bnd.http.ProgressWrappingStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class ProgressWrappingStream extends java.io.InputStream
-
-
Constructor Summary
Constructors Constructor Description ProgressWrappingStream(java.io.InputStream delegate, java.lang.String name, int size, ProgressPlugin.Task task, long timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read()
int
read(byte[] buffer)
int
read(byte[] buffer, int offset, int length)
int
update(int count)
-
-
-
Constructor Detail
-
ProgressWrappingStream
public ProgressWrappingStream(java.io.InputStream delegate, java.lang.String name, int size, ProgressPlugin.Task task, long timeout)
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] buffer) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
update
public int update(int count) throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-