java.lang.Object
org.newsclub.net.unix.rmi.RemoteFileDescriptorBase<Void>
org.newsclub.net.unix.rmi.RemoteFileDescriptor
- All Implemented Interfaces:
Closeable
,Externalizable
,Serializable
,AutoCloseable
,org.newsclub.net.unix.FileDescriptorAccess
A generic (unspecific)
FileDescriptor
reference.- Author:
- Christian Kohlschütter
- See Also:
-
Field Summary
Fields inherited from class org.newsclub.net.unix.rmi.RemoteFileDescriptorBase
resource
-
Constructor Summary
ConstructorDescriptionCreates an uninitialized instance; used for externalization.RemoteFileDescriptor
(AFUNIXRMISocketFactory socketFactory, FileDescriptor fd) Creates a newRemoteFileOutput
instance, encapsulating a genericFileDescriptor
so that it can be shared with other processes via RMI. -
Method Summary
Methods inherited from class org.newsclub.net.unix.rmi.RemoteFileDescriptorBase
getFileDescriptor, getMagicValue, readExternal, writeExternal
-
Constructor Details
-
RemoteFileDescriptor
public RemoteFileDescriptor()Creates an uninitialized instance; used for externalization.- See Also:
-
RemoteFileDescriptor
Creates a newRemoteFileOutput
instance, encapsulating a genericFileDescriptor
so that it can be shared with other processes via RMI.- Parameters:
socketFactory
- The socket factory.fd
- TheFileDescriptor
.
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classRemoteFileDescriptorBase<Void>
- Throws:
IOException
-