public class ProgressInputStream extends InputStream
Constructor and Description |
---|
ProgressInputStream(InputStream wrapper) |
ProgressInputStream(InputStream wrapper,
ByteTransferProgress progress) |
ProgressInputStream(InputStream wrapper,
long end) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
finish() |
void |
finish(boolean error)
完成
|
ByteTransferProgress |
getProgress() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
void |
setProgress(ByteTransferProgress progress) |
long |
skip(long n) |
void |
start()
开始
|
public ProgressInputStream(InputStream wrapper)
public ProgressInputStream(InputStream wrapper, long end)
public ProgressInputStream(InputStream wrapper, ByteTransferProgress progress)
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public void mark(int readLimit)
mark
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream
public void start()
public void finish()
public void finish(boolean error)
error
- 是否失败public ByteTransferProgress getProgress()
public void setProgress(ByteTransferProgress progress)
Copyright © 2024. All rights reserved.