Top Constructors Methods
org.freedesktop.dbus.transport.junixsocket

public Class JUnixSocketMessageReader

extends AbstractInputStreamMessageReader
Class Inheritance
Imports
org.freedesktop.dbus.exceptions.DBusException, org.freedesktop.dbus.spi.message.AbstractInputStreamMessageReader, .ISocketProvider, org.newsclub.net.unix.AFUNIXSocketChannel, java.io.FileDescriptor, .IOException, java.nio.channels.SocketChannel, java.util.ArrayList, .List, .Optional

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected List<FileDescriptor>
readFileDescriptors(SocketChannel
input channel to read
_inputChannel
)

Implements abstract org.freedesktop.dbus.spi.message.AbstractInputStreamMessageReader.readFileDescriptors.

Methods which will be called when file descriptor passing is enabled.

Inherited from org.freedesktop.dbus.spi.message.AbstractInputStreamMessageReader:
closegetLoggergetSocketProviderImplisClosedreadMessagetoString

Constructor Detail

JUnixSocketMessageReaderback to summary
public JUnixSocketMessageReader(AFUNIXSocketChannel _socket, ISocketProvider _socketProviderImpl)

Method Detail

readFileDescriptorsback to summary
protected List<FileDescriptor> readFileDescriptors(SocketChannel _inputChannel) throws DBusException

Implements abstract org.freedesktop.dbus.spi.message.AbstractInputStreamMessageReader.readFileDescriptors.

Doc from org.freedesktop.dbus.spi.message.AbstractInputStreamMessageReader.readFileDescriptors.

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.

Parameters
_inputChannel:SocketChannel

input channel to read

Returns:List<FileDescriptor>

List or null

Annotations
@Override
Exceptions
DBusException:
when reading throws exceptions