|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Reader
org.openmdx.base.stream.rmi.cci.CharacterSource_1Reader
public class CharacterSource_1Reader
Streams: Character Source Reader
| Field Summary | |
|---|---|
protected ExecutionContext |
callbackContext
Callback Context |
protected int |
capacity
The stream's actual capacity |
protected static int |
DEFAULT_CAPACITY
The stream's default capacity |
protected CharacterSource_1_0 |
in
|
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
CharacterSource_1Reader(CharacterSource_1_0 source,
ExecutionContext callbackContext)
Constructor |
|
CharacterSource_1Reader(CharacterSource_1_0 source,
int capacity,
ExecutionContext callbackContext)
Constructor |
|
| Method Summary | |
|---|---|
void |
close()
Closes this iterator and releases any system resources associated with it. |
protected boolean |
isOpen()
|
long |
length()
Get the stream's length |
int |
read(char[] destination,
int offset,
int length)
Read characters into a portion of an array. |
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, read, read, ready, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CharacterSource_1_0 in
protected static int DEFAULT_CAPACITY
protected final int capacity
protected final ExecutionContext callbackContext
| Constructor Detail |
|---|
public CharacterSource_1Reader(CharacterSource_1_0 source,
int capacity,
ExecutionContext callbackContext)
source - capacity - callbackContext - The execution context for callbacks
public CharacterSource_1Reader(CharacterSource_1_0 source,
ExecutionContext callbackContext)
source - callbackContext - The execution context for callbacks| Method Detail |
|---|
protected boolean isOpen()
public long length()
throws IOException
length in interface Source_1_0IOException
public void close()
throws IOException
Source_1_0No read() operation must be invoked after close().
close in interface Closeableclose in interface Source_1_0close in class ReaderIOException - if an I/O error occurs.
public int read(char[] destination,
int offset,
int length)
throws IOException
read in class Readerdestination - Destination bufferoffset - Offset at which to start storing characterslength - Maximum number of characters to read
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||