public class ProgressInputStream
extends java.io.FilterInputStream
InputStream implementation which will report Progress
to an DownloadListener.
Created by covers1624 on 22/11/21.
| Constructor and Description |
|---|
ProgressInputStream(java.io.InputStream in,
DownloadListener listener) |
ProgressInputStream(java.io.InputStream in,
DownloadListener listener,
long totalLen) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
public ProgressInputStream(java.io.InputStream in,
DownloadListener listener)
public ProgressInputStream(java.io.InputStream in,
DownloadListener listener,
long totalLen)
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.FilterInputStream