|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream | +--com.monica.javacom.streams.MJCWriterIsAOS
Class to enable to write into the MJC layer hierarchy using the conventional OutputStream methods. Objects of this class act as OutputStreams, and they forward the data written on them to MJCWriteables.
Constructor Summary | |
MJCWriterIsAOS()
Default constructor. |
Method Summary | |
void |
close()
Closes the OuputStream. |
void |
flush()
Flushes the contents of the buffer to the MJCWriteable of this object. |
MJCWriteable |
getWriteable()
Returns the MJCWriteable to which this object writes. |
java.lang.String |
getWriterName()
Returns the MJC name of the MJCWriter. |
java.lang.String |
getWriterVersion()
Returns the MJC version of the MJCWriter. |
void |
setWriteable(MJCWriteable writeable)
Sets the MJCWriteable to which this object writes. |
void |
write(byte[] b)
Writes a byte array to the MJCWriteable of this object. |
void |
write(byte[] b,
int off,
int len)
Writes a part (specified with beginning offset and length) of a byte array to the MJCWriteable of this object. |
void |
write(int b)
Writes an int (0...255) to the MJCWriteable of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MJCWriterIsAOS()
Method Detail |
public java.lang.String getWriterName()
getWriterName
in interface MJCWriter
public java.lang.String getWriterVersion()
getWriterVersion
in interface MJCWriter
public void setWriteable(MJCWriteable writeable)
setWriteable
in interface MJCWriter
MJCWriteable
- writeable: the MCJWriteable to which this object writespublic MJCWriteable getWriteable()
getWriteable
in interface MJCWriter
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
int
- b: the int to be written to the MCJWriteableIOException:
- if something goes wrongpublic void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
byte[]
- b: the byte array to be written to the MCJWriteableIOException:
- if something goes wrongpublic void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
byte[]
- b: the byte array to be written to the MCJWriteableint
- off: the beginning offset (inclusive) of the part to be written outint
- len: the length of the part to be written outIOException:
- if something goes wrongpublic void flush() throws java.io.IOException
flush
in class java.io.OutputStream
public void close() throws java.io.IOException
close
in class java.io.OutputStream
IOException:
- if something goes wron
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |