|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Reader
org.eclipse.ercp.xml.io.StreamDecoder_ISO8859_1
public class StreamDecoder_ISO8859_1
StreamDecoder for the ISO8859_1 encoding ==> One byte ==> One char!
Field Summary | |
---|---|
protected SimpleBufferedInputStream |
stream
|
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
StreamDecoder_ISO8859_1(SimpleBufferedInputStream stream)
Constructor for StreamDecoder_ISO8859_1. |
Method Summary | |
---|---|
void |
close()
Close this Reader. |
java.lang.String |
getEncoding()
Return the encoding name |
int |
read()
Reads a single character from this reader and returns the result as an int. |
int |
read(char[] buf,
int offset,
int count)
Reads at most count characters from this Reader and stores them
at offset in the character array buf . |
void |
restore()
If the decoder read too much bytes during the last read (cf. |
boolean |
supportNewEncoding()
Return tru if the receiver didn't affect the InputStream not allowing the switch to another encoding |
Methods inherited from class java.io.Reader |
---|
mark, markSupported, read, read, ready, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SimpleBufferedInputStream stream
Constructor Detail |
---|
public StreamDecoder_ISO8859_1(SimpleBufferedInputStream stream)
stream
- Method Detail |
---|
public int read() throws java.io.IOException
java.io.IOException
- If the Reader is already closed or some other IO error occurs.org.eclipse.ercp.sax2.parser.StreamDecoder#read()
public int read(char[] buf, int offset, int count) throws java.io.IOException
count
characters from this Reader and stores them
at offset
in the character array buf
. Returns the
number of characters actually read or -1 if the end of reader was encountered.
buf
- character array to store the read charactersoffset
- offset in buf to store the read characterscount
- maximum number of characters to read
java.io.IOException
- If the Reader is already closed or some other IO error occurs.org.eclipse.ercp.sax2.parser.StreamDecoder#read(char[], int, int)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Reader
java.io.IOException
- If an error occurs attempting to close this Reader.public boolean supportNewEncoding()
public void restore()
public java.lang.String getEncoding()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |