java.lang.Object
org.newsclub.net.unix.rmi.RemoteFileDescriptorBase<FileOutputStream>
org.newsclub.net.unix.rmi.RemoteFileOutput
- All Implemented Interfaces:
- Closeable,- Externalizable,- Serializable,- AutoCloseable,- org.newsclub.net.unix.FileDescriptorAccess
A specialized subclass of 
RemoteFileDescriptorBase, specifically for
 FileOutputStreams.- Author:
- Christian Kohlschütter
- See Also:
- 
Field SummaryFields inherited from class org.newsclub.net.unix.rmi.RemoteFileDescriptorBaseresource
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an uninitialized instance; used for externalization.RemoteFileOutput(AFUNIXRMISocketFactory socketFactory, FileOutputStream fout) Creates a newRemoteFileOutputinstance, encapsulating aFileOutputStreamso that it can be shared with other processes via RMI.
- 
Method SummaryModifier and TypeMethodDescriptionReturns a FileOutputStream for the given instance.Methods inherited from class org.newsclub.net.unix.rmi.RemoteFileDescriptorBaseclose, getFileDescriptor, getMagicValue, readExternal, writeExternal
- 
Constructor Details- 
RemoteFileOutputpublic RemoteFileOutput()Creates an uninitialized instance; used for externalization.- See Also:
 
- 
RemoteFileOutputpublic RemoteFileOutput(AFUNIXRMISocketFactory socketFactory, FileOutputStream fout) throws IOException Creates a newRemoteFileOutputinstance, encapsulating aFileOutputStreamso that it can be shared with other processes via RMI.- Parameters:
- socketFactory- The socket factory.
- fout- The- FileOutputStream.
- Throws:
- IOException- if the operation fails.
 
 
- 
- 
Method Details- 
asFileOutputStreamReturns a FileOutputStream for the given instance. This either is the actual instance provided by the constructor or a new instance created from the file descriptor.- Returns:
- The FileOutputStream.
- Throws:
- IOException- if the operation fails.
 
 
-