Modul org.freedesktop.dbus
Package org.freedesktop.dbus.spi.message
Klasse AbstractOutputStreamMessageWriter
java.lang.Object
org.freedesktop.dbus.spi.message.AbstractOutputStreamMessageWriter
- Alle implementierten Schnittstellen:
Closeable
,AutoCloseable
,IMessageWriter
- Bekannte direkte Unterklassen:
OutputStreamMessageWriter
Base class which can be used to implement a custom message writer.
- Seit:
- 4.3.1 - 2023-08-07
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
AbstractOutputStreamMessageWriter
(SocketChannel _out, ISocketProvider _socketProviderImpl) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
close()
protected org.slf4j.Logger
protected ISocketProvider
boolean
isClosed()
toString()
protected abstract void
writeFileDescriptors
(SocketChannel _outputChannel, List<FileDescriptor> _filedescriptors) Called to write any file descriptors to the given channel.
Should do nothing if there is no file descriptor to write, or method is not supported.final void
writeMessage
(Message _msg) Write a message out to the bus.
-
Konstruktordetails
-
AbstractOutputStreamMessageWriter
protected AbstractOutputStreamMessageWriter(SocketChannel _out, ISocketProvider _socketProviderImpl)
-
-
Methodendetails
-
writeMessage
Beschreibung aus Schnittstelle kopiert:IMessageWriter
Write a message out to the bus.- Angegeben von:
writeMessage
in SchnittstelleIMessageWriter
- Parameter:
_msg
- The message to write- Löst aus:
IOException
- If an IO error occurs.
-
writeFileDescriptors
protected abstract void writeFileDescriptors(SocketChannel _outputChannel, List<FileDescriptor> _filedescriptors) throws IOException Called to write any file descriptors to the given channel.
Should do nothing if there is no file descriptor to write, or method is not supported.- Parameter:
_outputChannel
- channel to write to_filedescriptors
- file descriptors attached to message- Löst aus:
IOException
- when writing the descriptors fail
-
getLogger
protected org.slf4j.Logger getLogger() -
getSocketProviderImpl
-
close
- Angegeben von:
close
in SchnittstelleAutoCloseable
- Angegeben von:
close
in SchnittstelleCloseable
- Löst aus:
IOException
-
isClosed
public boolean isClosed()- Angegeben von:
isClosed
in SchnittstelleIMessageWriter
-
toString
-