public class DecodingReader
extends java.io.PushbackReader
| Constructor and Description |
|---|
DecodingReader(java.io.InputStream stream,
int size,
java.nio.charset.Charset cs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.nio.charset.Charset |
getCharset()
Get the Charset used to decode bytes from the input stream.
|
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] cbuf) |
int |
read(char[] cbuf,
int off,
int len) |
int |
read(java.nio.CharBuffer cb) |
boolean |
ready() |
void |
reset() |
void |
setCharset(java.nio.charset.Charset cs)
Change the Charset used to decode bytes from the input stream
into characters.
|
long |
skip(long n)
Skips 'n' characters, or as many as can be read off the stream
before its end.
|
void |
unread(char[] cbuf) |
void |
unread(char[] cbuf,
int off,
int len)
Unread the character array into the reader.
|
void |
unread(int c)
Unread a single code point.
|
public DecodingReader(java.io.InputStream stream,
int size,
java.nio.charset.Charset cs)
public final void setCharset(java.nio.charset.Charset cs)
public final java.nio.charset.Charset getCharset()
public final void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.PushbackReaderjava.io.IOExceptionpublic final void mark(int readAheadLimit)
throws java.io.IOException
mark in class java.io.PushbackReaderjava.io.IOExceptionpublic final boolean markSupported()
markSupported in class java.io.PushbackReaderpublic final boolean ready()
throws java.io.IOException
ready in class java.io.PushbackReaderjava.io.IOExceptionpublic final void reset()
throws java.io.IOException
reset in class java.io.PushbackReaderjava.io.IOExceptionpublic final long skip(long n)
throws java.io.IOException
skip in class java.io.PushbackReaderjava.io.IOExceptionpublic final void unread(int c)
throws java.io.IOException
unread in class java.io.PushbackReaderjava.io.IOExceptionpublic final void unread(char[] cbuf,
int off,
int len)
throws java.io.IOException
unread in class java.io.PushbackReaderjava.io.IOExceptionpublic final void unread(char[] cbuf)
throws java.io.IOException
unread in class java.io.PushbackReaderjava.io.IOExceptionpublic final int read()
throws java.io.IOException
read in class java.io.PushbackReaderjava.io.IOExceptionpublic final int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.PushbackReaderjava.io.IOExceptionpublic final int read(java.nio.CharBuffer cb)
throws java.io.IOException
read in interface java.lang.Readableread in class java.io.Readerjava.io.IOExceptionpublic final int read(char[] cbuf)
throws java.io.IOException
read in class java.io.Readerjava.io.IOException