|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implements the destination part of the read functionality in the MJC layer hierarchy. MJCReader is always the destination of data from an MJCReadable. 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 in the MJCReadable.
Method Summary | |
void |
connectionClosedEvent(MJCReadable readable)
Indicates that the source connection of the specified MJCReadable has been closed. |
void |
errorEvent(java.lang.String errorDescription,
MJCReadable readable)
Indicates that there was an error in the source connection of the specified MJCReadable. |
MJCReadable |
getReadable()
Returns the MJCReadable from which data will be read. |
java.lang.String |
getReaderName()
Returns the MJC name of the MJCReader. |
java.lang.String |
getReaderVersion()
Returns the MJC version of the MJCReader. |
void |
readEvent(MJCReadable readable)
Indicates that there is data available from the specified MJCReadable. |
void |
setReadable(MJCReadable readable)
Sets the MJCReadable from which data has to be read. |
Method Detail |
public java.lang.String getReaderName()
public java.lang.String getReaderVersion()
public void readEvent(MJCReadable readable)
MJCReadable
- readable: there is data available from the
readablepublic void connectionClosedEvent(MJCReadable readable)
MJCReadable
- readable: the MJCReadable whose source connection
has been closedpublic void errorEvent(java.lang.String errorDescription, MJCReadable readable)
String
- errorDescription: the error messageMJCReadable
- readable: the MJCReadable where the error
occuredpublic void setReadable(MJCReadable readable)
MJCReadable
- readable: the MJCReadable from which data has
to be readpublic MJCReadable getReadable()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |