public class ReaderWrapper extends Reader implements Wrapper<Reader>
Reader 包装| Constructor and Description |
|---|
ReaderWrapper(Reader reader)
构造
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Reader |
getRaw()
获取原始对象
|
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] cbuf) |
int |
read(char[] buffer,
int off,
int len) |
int |
read(CharBuffer target) |
boolean |
ready() |
void |
reset() |
long |
skip(long n) |
protected final Reader raw
public int read()
throws IOException
read in class ReaderIOExceptionpublic int read(CharBuffer target) throws IOException
read in interface Readableread in class ReaderIOExceptionpublic int read(char[] cbuf)
throws IOException
read in class ReaderIOExceptionpublic int read(char[] buffer,
int off,
int len)
throws IOException
read in class ReaderIOExceptionpublic boolean markSupported()
markSupported in class Readerpublic void mark(int readAheadLimit)
throws IOException
mark in class ReaderIOExceptionpublic long skip(long n)
throws IOException
skip in class ReaderIOExceptionpublic boolean ready()
throws IOException
ready in class ReaderIOExceptionpublic void reset()
throws IOException
reset in class ReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionCopyright © 2025. All rights reserved.