public abstract class Reader extends Object implements AutoCloseable
| Modifier | Constructor and Description |
|---|---|
protected |
Reader() |
protected |
Reader(Object lock) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] cbuf) |
abstract int |
read(char[] cbuf,
int off,
int len) |
boolean |
ready() |
void |
reset() |
long |
skip(long n) |
protected Object lock
protected Reader()
protected Reader(Object lock)
public abstract void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic void mark(int readAheadLimit)
throws IOException
IOExceptionpublic boolean markSupported()
public int read()
throws IOException
IOExceptionpublic int read(char[] cbuf)
throws IOException
IOExceptionpublic abstract int read(char[] cbuf,
int off,
int len)
throws IOException
IOExceptionpublic boolean ready()
throws IOException
IOExceptionpublic void reset()
throws IOException
IOExceptionpublic long skip(long n)
throws IOException
IOExceptionCopyright © 2026. All rights reserved.