|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.io.Reader
com.tangosol.io.Utf8Reader
public class Utf8Reader
A Utf8Reader is used to read character data from an underlying stream.
Field Summary |
---|
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
Utf8Reader(byte[] ab) Construct a Utf8Reader that reads the input from a byte array. |
|
Utf8Reader(java.io.InputStream stream) Construct a Utf8Reader that reads the input from an InputStream. |
Method Summary | |
---|---|
void |
close() Close the stream. |
void |
mark(int cchLimit) Mark the present position in the stream. |
boolean |
markSupported() Tell whether this stream supports the mark() operation. |
int |
read() Read a single character. |
int |
read(char[] ach) Read characters into an array. |
int |
read(char[] ach, int of, int cch) Read characters into a portion of an array. |
boolean |
ready() Tell whether this stream is ready to be read. |
void |
reset() Reset the stream. |
long |
skip(long cch) Skip characters. |
Methods inherited from class java.io.Reader |
---|
read |
Constructor Detail |
---|
public Utf8Reader(byte[] ab)
public Utf8Reader(java.io.InputStream stream)
stream
- the underlying stream to write toMethod Detail |
---|
public int read() throws java.io.IOException
Subclasses that intend to support efficient single-character input should override this method.
read
in class java.io.Reader
java.io.IOException
- If an I/O error occurspublic int read(char[] ach) throws java.io.IOException
read
in class java.io.Reader
ach
- Destination bufferjava.io.IOException
- If an I/O error occurspublic int read(char[] ach, int of, int cch) throws java.io.IOException
read
in class java.io.Reader
ach
- array of characters to read intoof
- offset into the array at which to start storing characterscch
- maximum number of characters to readjava.io.IOException
- If an I/O error occurspublic long skip(long cch) throws java.io.IOException
skip
in class java.io.Reader
cch
- The number of characters to skipjava.lang.IllegalArgumentException
- If n
is negative.java.io.IOException
- If an I/O error occurspublic boolean ready() throws java.io.IOException
ready
in class java.io.Reader
java.io.IOException
- If an I/O error occurspublic boolean markSupported()
markSupported
in class java.io.Reader
public void mark(int cchLimit) throws java.io.IOException
mark
in class java.io.Reader
cchLimit
- Limit on the number of characters that may be read while still preserving the mark. After reading this many characters, attempting to reset the stream may fail.java.io.IOException
- If the stream does not support mark(), or if some other I/O error occurspublic void reset() throws java.io.IOException
reset
in class java.io.Reader
java.io.IOException
- If the stream has not been marked, or if the mark has been invalidated, or if the stream does not support reset(), or if some other I/O error occurspublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Reader
java.io.IOException
- If an I/O error occurs
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |