Class RemoteFileDescriptor
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 RemoteFileDescriptorBase
resourceModifier and TypeFieldDescriptionprotected final AtomicReference<Void> An optional, closeable resource that is related to this instance. -
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 RemoteFileDescriptorBase
getFileDescriptor, getMagicValue, readExternal, writeExternalModifier and TypeMethodDescriptionfinal FileDescriptorReturns the file descriptor.protected final intReturns the "magic value" for this type of file descriptor.final voidreadExternal(ObjectInput objIn) final voidwriteExternal(ObjectOutput objOut)
-
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
-