java.lang.Object
org.freedesktop.dbus.FileDescriptor
Represents a FileDescriptor to be passed over the bus.
Can be created from either an integer (gotten through some JNI/JNA/JNR call) or from a
Can be created from either an integer (gotten through some JNI/JNA/JNR call) or from a
FileDescriptor
.-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
static FileDescriptor
fromJavaFileDescriptor
(FileDescriptor _data, ISocketProvider _provider) Utility method to create a DBusFileDescriptor
from aFileDescriptor
.
Tries to use the provided ISocketProvider if present first.
If not present or conversion failed, tries to convert using reflection.int
int
hashCode()
toJavaFileDescriptor
(ISocketProvider _provider) Converts this DBusFileDescriptor
to aFileDescriptor
.
Tries to use the provided ISocketProvider if present first.toString()
-
Konstruktordetails
-
FileDescriptor
public FileDescriptor(int _fd)
-
-
Methodendetails
-
toJavaFileDescriptor
Converts this DBusFileDescriptor
to aFileDescriptor
.
Tries to use the provided ISocketProvider if present first.
If not present or conversion failed, tries to convert using reflection.- Parameter:
_provider
- provider or null- Gibt zurück:
- java file descriptor
- Löst aus:
MarshallingException
- when converting fails
-
getIntFileDescriptor
public int getIntFileDescriptor() -
equals
-
hashCode
public int hashCode() -
toString
-
fromJavaFileDescriptor
public static FileDescriptor fromJavaFileDescriptor(FileDescriptor _data, ISocketProvider _provider) throws MarshallingException Utility method to create a DBusFileDescriptor
from aFileDescriptor
.
Tries to use the provided ISocketProvider if present first.
If not present or conversion failed, tries to convert using reflection.- Parameter:
_data
- file descriptor_provider
- socket provider or null- Gibt zurück:
- DBus FileDescriptor
- Löst aus:
MarshallingException
- when conversion fails
-