|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
java.io.FilterReader
java.io.PushbackReader
org.armedbear.lisp.util.DecodingReader
public class DecodingReader
Class to support mid-stream change of character encoding to support setExternalFormat operation in Stream.java Note: extends PushbackReader, but only for its interface; all methods are overridden.
| Field Summary |
|---|
| Fields inherited from class java.io.FilterReader |
|---|
in |
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
DecodingReader(java.io.InputStream stream,
int size,
java.nio.charset.Charset cs)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DecodingReader(java.io.InputStream stream,
int size,
java.nio.charset.Charset cs)
| Method Detail |
|---|
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 class java.io.PushbackReaderjava.io.IOException
public 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.PushbackReader
public final boolean ready()
throws java.io.IOException
ready in class java.io.PushbackReaderjava.io.IOException
public final void reset()
throws java.io.IOException
reset in class java.io.PushbackReaderjava.io.IOException
public final long skip(long n)
throws java.io.IOException
skip in class java.io.PushbackReaderjava.io.IOException
public final void unread(int c)
throws java.io.IOException
unread in class java.io.PushbackReaderjava.io.IOException
public final void unread(char[] cbuf,
int off,
int len)
throws java.io.IOException
unread in class java.io.PushbackReaderjava.io.IOException
public final void unread(char[] cbuf)
throws java.io.IOException
unread in class java.io.PushbackReaderjava.io.IOException
public final int read()
throws java.io.IOException
read in class java.io.PushbackReaderjava.io.IOException
public final int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.PushbackReaderjava.io.IOException
public final int read(java.nio.CharBuffer cb)
throws java.io.IOException
read in interface java.lang.Readableread in class java.io.Readerjava.io.IOException
public final int read(char[] cbuf)
throws java.io.IOException
read in class java.io.Readerjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||