java.lang.Object
org.newsclub.net.unix.rmi.RemoteFileDescriptorBase<Void>
org.newsclub.net.unix.rmi.RemoteFileDescriptor
- All Implemented Interfaces:
Closeable,Externalizable,Serializable,AutoCloseable,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
ConstructorsConstructorDescriptionCreates an uninitialized instance; used for externalization.RemoteFileDescriptor(AFUNIXRMISocketFactory socketFactory, FileDescriptor fd) Creates a newRemoteFileOutputinstance, encapsulating a genericFileDescriptorso 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 newRemoteFileOutputinstance, encapsulating a genericFileDescriptorso that it can be shared with other processes via RMI.- Parameters:
socketFactory- The socket factory.fd- TheFileDescriptor.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classRemoteFileDescriptorBase<Void>- Throws:
IOException
-