| java.lang.Object java.io.Reader java.io.FilterReader com.sun.portal.util.UnicodeInputStreamReader
UnicodeInputStreamReader | public class UnicodeInputStreamReader extends FilterReader (Code) | | The UnicodeInputStreamReader class converts from a byte
stream that contains Java Unicode encoded characters (\\uXXXX) to
Unicode characters. It can be used to read files that have been
produced using the native2ascii tool.
|
Method Summary | |
public boolean | markSupported() | public int | read() Read one character from the stream. | public int | read(char cbuf, int off, int len) Read up to len characters from the stream and put them in cbuf starting
at offset off. |
UnicodeInputStreamReader | public UnicodeInputStreamReader(InputStream is) throws UnsupportedEncodingException(Code) | | Creates a Unicode input stream reader that reads from the given stream.
Parameters: is - the InputStream from which to read |
markSupported | public boolean markSupported()(Code) | | |
read | public int read() throws IOException(Code) | | Read one character from the stream. See the other read method for information
on decoding that is performed.
|
read | public int read(char cbuf, int off, int len) throws IOException(Code) | | Read up to len characters from the stream and put them in cbuf starting
at offset off. As characters are read, the following conversions are performed:
\\uXXXX is converted to one Unicode character having the value represented by
the four hex digits.
\\ is converted to \
\X any character preceded by \ is converted to that character.
Parameters: cbuf - the array of characters that is filled in Parameters: off - the offset at which to start placing characters Parameters: len - the maximum number of characters to read |
|
|