public class UnicodeInputStreamReader extends FilterReader
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.in
Constructor and Description |
---|
UnicodeInputStreamReader(InputStream is)
Creates a Unicode input stream reader that reads from the given stream.
|
Modifier and Type | Method and Description |
---|---|
boolean |
markSupported() |
int |
read()
Read one character from the stream.
|
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.
|
public UnicodeInputStreamReader(InputStream is) throws UnsupportedEncodingException
is
- the InputStream from which to readUnsupportedEncodingException
public boolean markSupported()
markSupported
in class FilterReader
public int read() throws IOException
read
in class FilterReader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class FilterReader
cbuf
- the array of characters that is filled inoff
- the offset at which to start placing characterslen
- the maximum number of characters to readIOException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.