|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implements the source part of the read functionality in the MJC layer hierarchy. MJCReadable is always the source of data for an MJCReader. Reading in the MJC layer hierarchy is asynchronous. If there is data available from the MJCReadable, the readEvent of the MJCReader is called. Which then can read through the getInput method of the MJCReadable. Data during the time between the readEvent and getInput will be buffered.
Method Summary | |
int |
getAvailable()
Returns the number of bytes that are available for read out from this MJCReadable. |
java.lang.String |
getInput()
Returns the contents of the read buffer from this MJCReadable. |
java.lang.String |
getReadableName()
Returns the MJC name of the MJCReadable. |
java.lang.String |
getReadableVersion()
Returns the MJC version of the MJCReadable. |
MJCReader |
getReader()
Returns the MJCReader to which readEvents will be sent. |
boolean |
isReadableConnected()
Returns wether the MJCReadable is still connected to its source. |
void |
setReader(MJCReader reader)
Sets the MJCReader to which the readEvents have to be sent. |
Method Detail |
public java.lang.String getReadableName()
public java.lang.String getReadableVersion()
public int getAvailable()
public java.lang.String getInput()
public boolean isReadableConnected()
public void setReader(MJCReader reader)
MJCReader
- reader: the MJCReader to which the readEvents
have to be sentpublic MJCReader getReader()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |