java.lang.Object
org.newsclub.net.unix.rmi.RemoteFileDescriptorBase<FileInputStream>
org.newsclub.net.unix.rmi.RemoteFileInput
- All Implemented Interfaces:
- Closeable,- Externalizable,- Serializable,- AutoCloseable,- org.newsclub.net.unix.FileDescriptorAccess
public final class RemoteFileInput
extends RemoteFileDescriptorBase<FileInputStream>
implements Closeable
A specialized subclass of 
RemoteFileDescriptorBase, specifically for
 FileInputStreams.- 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.RemoteFileInput(AFUNIXRMISocketFactory socketFactory, FileInputStream fin) Creates a newRemoteFileInputinstance, encapsulating aFileInputStreamso that it can be shared with other processes via RMI.
- 
Method SummaryModifier and TypeMethodDescriptionReturns a FileInputStream for the given instance.Methods inherited from class org.newsclub.net.unix.rmi.RemoteFileDescriptorBaseclose, getFileDescriptor, getMagicValue, readExternal, writeExternal
- 
Constructor Details- 
RemoteFileInputpublic RemoteFileInput()Creates an uninitialized instance; used for externalization.- See Also:
 
- 
RemoteFileInputpublic RemoteFileInput(AFUNIXRMISocketFactory socketFactory, FileInputStream fin) throws IOException Creates a newRemoteFileInputinstance, encapsulating aFileInputStreamso that it can be shared with other processes via RMI.- Parameters:
- socketFactory- The socket factory.
- fin- The- FileInputStream.
- Throws:
- IOException- if the operation fails.
 
 
- 
- 
Method Details- 
asFileInputStreamReturns a FileInputStream 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 FileInputStream.
- Throws:
- IOException- if the operation fails.
 
 
-