Klasse AbstractOutputStreamMessageWriter

java.lang.Object
org.freedesktop.dbus.spi.message.AbstractOutputStreamMessageWriter
Alle implementierten Schnittstellen:
Closeable, AutoCloseable, IMessageWriter
Bekannte direkte Unterklassen:
OutputStreamMessageWriter

public abstract class AbstractOutputStreamMessageWriter extends Object implements IMessageWriter
Base class which can be used to implement a custom message writer.
Seit:
4.3.1 - 2023-08-07
  • Konstruktordetails

  • Methodendetails

    • writeMessage

      public final void writeMessage(Message _msg) throws IOException
      Beschreibung aus Schnittstelle kopiert: IMessageWriter
      Write a message out to the bus.
      Angegeben von:
      writeMessage in Schnittstelle IMessageWriter
      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

      protected ISocketProvider getSocketProviderImpl()
    • close

      public void close() throws IOException
      Angegeben von:
      close in Schnittstelle AutoCloseable
      Angegeben von:
      close in Schnittstelle Closeable
      Löst aus:
      IOException
    • isClosed

      public boolean isClosed()
      Angegeben von:
      isClosed in Schnittstelle IMessageWriter
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object