|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.monica.javacom.streams.MJCReaderHasAOS
Class for creating a link between an OutputStream and the MJC layer hierarchy. This class acts as a MJCReader, this means it handles asynchronous readEvents from an MJCReadable, and what it reads, it forwards to an OuputStream. The writing to the OuputStream is not buffered.
Constructor Summary | |
MJCReaderHasAOS(java.io.OutputStream os)
Constructor. |
Method Summary | |
void |
connectionClosedEvent(MJCReadable readable)
Handles the asynchronous connectionClosedEvents from the MJCReadable. |
void |
errorEvent(java.lang.String errorDescription,
MJCReadable readable)
Handles the asynchronous errorEvent from the MJCReadable. |
MJCReadable |
getReadable()
Queries 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)
Handles the asynchronous readEvents from the MJCReadable. |
void |
setReadable(MJCReadable readable)
Sets the MJCReadable from which data has to be read, this means, which will send the readEvents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MJCReaderHasAOS(java.io.OutputStream os)
OutputStream
- os: the OutputStream to which data has to
be forwardedMethod Detail |
public java.lang.String getReaderName()
getReaderName
in interface MJCReader
public java.lang.String getReaderVersion()
getReaderVersion
in interface MJCReader
public void readEvent(MJCReadable readable)
readEvent
in interface MJCReader
MJCReadable
- readable: the MJCReadable from which the
readEvent camepublic void connectionClosedEvent(MJCReadable readable)
connectionClosedEvent
in interface MJCReader
MJCReadable
- readable: the MJCReadable where the
connectionClosedEvent occuredpublic void errorEvent(java.lang.String errorDescription, MJCReadable readable)
errorEvent
in interface MJCReader
String
- errorDescription: the error messageMJCReadable
- readable: the MJCReadable where the error
occuredpublic void setReadable(MJCReadable readable)
setReadable
in interface MJCReader
MJCReadable
- readable: the MJCReadable from which data has
to be readpublic MJCReadable getReadable()
getReadable
in interface MJCReader
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |