Package org.freedesktop.dbus.spi
Class OutputStreamMessageWriter
- java.lang.Object
-
- org.freedesktop.dbus.spi.OutputStreamMessageWriter
-
- All Implemented Interfaces:
Closeable,AutoCloseable,IMessageWriter
public class OutputStreamMessageWriter extends Object implements IMessageWriter
-
-
Constructor Summary
Constructors Constructor Description OutputStreamMessageWriter(OutputStream _out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisClosed()voidwriteMessage(Message m)Write a message out to the bus.
-
-
-
Constructor Detail
-
OutputStreamMessageWriter
public OutputStreamMessageWriter(OutputStream _out)
-
-
Method Detail
-
writeMessage
public void writeMessage(Message m) throws IOException
Description copied from interface:IMessageWriterWrite a message out to the bus.- Specified by:
writeMessagein interfaceIMessageWriter- Parameters:
m- The message to write- Throws:
IOException- If an IO error occurs.
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceIMessageWriter
-
-