|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--java.io.Reader
Read character streams
| Field Summary | |
protected Object |
lock
The lock to use |
| Constructor Summary | |
protected |
Reader()
Create a reader synchronising on this object |
protected |
Reader(Object lock)
Create a reader synchronising on the lock |
| Method Summary | |
abstract void |
close()
close the stream |
void |
mark(int limit)
mark the stream |
boolean |
markSupported()
Test if mark is supported |
int |
read()
Read a character |
int |
read(char[] c)
Read into a character array |
abstract int |
read(char[] c,
int off,
int len)
Read into a character array |
boolean |
ready()
Test if it is available for reading |
void |
reset()
reset the stream |
long |
skip(long n)
Skip a number of characters |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Object lock
| Constructor Detail |
protected Reader()
protected Reader(Object lock)
lock - The lock to use| Method Detail |
public abstract void close()
throws IOException
IOException - if there is an IO error
public void mark(int limit)
throws IOException
limit - The read limit
IOException - if there is an IO errorpublic boolean markSupported()
public int read()
throws IOException
IOException - if there is an IO error
public int read(char[] c)
throws IOException
c - The character array
IOException - if there is an IO error
public abstract int read(char[] c,
int off,
int len)
throws IOException
c - The character arrayoff - The offsetlen - The length
IOException - if there is an IO error
public boolean ready()
throws IOException
IOException - if there is an IO error
public void reset()
throws IOException
IOException - if there is an IO error
public long skip(long n)
throws IOException
n - The number of characters
IOException - if there is an IO error
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||