public class ProgressReader extends Reader
Constructor and Description |
---|
ProgressReader(Reader wrapper) |
ProgressReader(Reader wrapper,
ByteTransferProgress progress) |
ProgressReader(Reader wrapper,
long end) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finish() |
void |
finish(boolean error)
完成
|
ByteTransferProgress |
getProgress() |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] chars) |
int |
read(char[] chars,
int off,
int len) |
int |
read(CharBuffer target) |
boolean |
ready() |
void |
reset() |
void |
setProgress(ByteTransferProgress progress) |
long |
skip(long n) |
void |
start()
开始
|
public ProgressReader(Reader wrapper)
public ProgressReader(Reader wrapper, long end)
public ProgressReader(Reader wrapper, ByteTransferProgress progress)
public int read(CharBuffer target) throws IOException
read
in interface Readable
read
in class Reader
IOException
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] chars) throws IOException
read
in class Reader
IOException
public int read(char[] chars, int off, int len) throws IOException
read
in class Reader
IOException
public long skip(long n) throws IOException
skip
in class Reader
IOException
public boolean ready() throws IOException
ready
in class Reader
IOException
public boolean markSupported()
markSupported
in class Reader
public void mark(int readAheadLimit) throws IOException
mark
in class Reader
IOException
public void reset() throws IOException
reset
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
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.