Modul org.freedesktop.dbus
Package org.freedesktop.dbus.spi.message
Klasse AbstractInputStreamMessageReader
java.lang.Object
org.freedesktop.dbus.spi.message.AbstractInputStreamMessageReader
- Alle implementierten Schnittstellen:
Closeable
,AutoCloseable
,IMessageReader
- Bekannte direkte Unterklassen:
InputStreamMessageReader
Base class which can be used to implement a custom message reader.
- Seit:
- 4.3.1 - 2023-08-07
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
AbstractInputStreamMessageReader
(SocketChannel _in, ISocketProvider _socketProviderImpl) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
close()
protected org.slf4j.Logger
protected ISocketProvider
boolean
isClosed()
protected abstract List
<FileDescriptor> readFileDescriptors
(SocketChannel _inputChannel) Methods which will be called when file descriptor passing is enabled.final Message
toString()
-
Konstruktordetails
-
AbstractInputStreamMessageReader
-
-
Methodendetails
-
readMessage
- Angegeben von:
readMessage
in SchnittstelleIMessageReader
- Löst aus:
IOException
DBusException
-
readFileDescriptors
protected abstract List<FileDescriptor> readFileDescriptors(SocketChannel _inputChannel) throws DBusException Methods which will be called when file descriptor passing is enabled. The implementation should fetch all file descriptors which have been transmitted and return them as List. If no file descriptor is available or feature is not supported, return null.- Parameter:
_inputChannel
- input channel to read- Gibt zurück:
- List or null
- Löst aus:
DBusException
- when reading throws exceptions
-
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 SchnittstelleIMessageReader
-
toString
-