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