|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.monica.javacom.streams.MJCWriteableHasAOS
Class for creating a link between an OutputStream and the MJC layer hierarchy. This class acts as a MJCWriteable, this means an upper layer can write to it, and what has been written on it, will be written again to the OutputStream given. The writing to the OutputStream is buffered.
Constructor Summary | |
MJCWriteableHasAOS(java.io.OutputStream os)
Constructor. |
Method Summary | |
void |
flush()
Flushes the conents of the buffer to the OutputStream. |
java.lang.String |
getLastWriteableError()
Returns the description of the last occured error. |
java.lang.String |
getWriteableName()
Returns the MJC name of the MJCWriteable. |
java.lang.String |
getWriteableVersion()
Returns the MJC version of the MJCWriteable. |
boolean |
isWriteableConnected()
Returns wether this MJCWriteable object is still connected to the OutputStream, that means, wether this object can still write to the OutputStream. |
boolean |
write(char c)
Writes a single char (0...255) to the OutputStream. |
boolean |
write(char[] c)
Writes an array of chars to the OutputStream. |
boolean |
write(java.lang.String s)
Writes a String to the OutputStream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MJCWriteableHasAOS(java.io.OutputStream os)
OutputStream
- os: the specified OutputStream to which the data has to
be writtenMethod Detail |
public java.lang.String getWriteableName()
getWriteableName
in interface MJCWriteable
public java.lang.String getWriteableVersion()
getWriteableVersion
in interface MJCWriteable
public boolean write(char c)
write
in interface MJCWriteable
char
- c: the char to be written to the OutputStreampublic boolean write(java.lang.String s)
write
in interface MJCWriteable
String
- s: the String to be written to the OutputStreampublic boolean write(char[] c)
write
in interface MJCWriteable
char[]
- c: the char array to be written to the OutputStreampublic void flush()
flush
in interface MJCWriteable
public java.lang.String getLastWriteableError()
getLastWriteableError
in interface MJCWriteable
public boolean isWriteableConnected()
isWriteableConnected
in interface MJCWriteable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |