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 InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readLimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void start()
public void finish()
public void finish(boolean error)
error - 是否失败public ByteTransferProgress getProgress()
public void setProgress(ByteTransferProgress progress)
Copyright © 2025. All rights reserved.