|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Reader
com.sun.cldc.i18n.StreamReader
public abstract class StreamReader
General prototype for character converting stream readers.
Field Summary | |
---|---|
InputStream |
in
Input stream to read from |
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
StreamReader()
|
Method Summary | |
---|---|
void |
close()
Close the stream. |
void |
mark(int readAheadLimit)
Mark the present position in the stream. |
boolean |
markSupported()
Tell whether this stream supports the mark() operation. |
Reader |
open(InputStream in,
String enc)
Open the reader |
boolean |
ready()
Tell whether the underlying byte stream is ready to be read. |
void |
reset()
Reset the stream. |
abstract int |
sizeOf(byte[] array,
int offset,
int length)
Get the size in chars of an array of bytes |
Methods inherited from class java.io.Reader |
---|
read, read, read, skip |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public InputStream in
Constructor Detail |
---|
public StreamReader()
Method Detail |
---|
public Reader open(InputStream in, String enc) throws UnsupportedEncodingException
UnsupportedEncodingException
public boolean ready()
ready
in class Reader
public boolean markSupported()
markSupported
in class Reader
public void mark(int readAheadLimit) throws IOException
mark
in class Reader
readAheadLimit
- 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.
IOException
- If an I/O error occurspublic void reset() throws IOException
reset
in class Reader
IOException
- If an I/O error occurspublic void close() throws IOException
close
in class Reader
IOException
- If an I/O error occurspublic abstract int sizeOf(byte[] array, int offset, int length)
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |