com.insightful.splus
Class FileInputStreamProxyImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.insightful.splus.FileInputStreamProxyImpl
- All Implemented Interfaces:
- FileInputStreamProxy, Remote, Serializable
- public class FileInputStreamProxyImpl
- extends UnicastRemoteObject
- implements FileInputStreamProxy
Remote object holding a reference to a FileInputStream on the
server. Relays method calls to the server-side FileInputStream.
- See Also:
- Serialized Form
FileInputStreamProxyImpl
public FileInputStreamProxyImpl(String filename,
boolean doSSL)
throws FileNotFoundException,
RemoteException
FileInputStreamProxyImpl
public FileInputStreamProxyImpl(String filename)
throws FileNotFoundException,
RemoteException
available
public int available()
throws IOException,
RemoteException
- Specified by:
available
in interface FileInputStreamProxy
- Throws:
IOException
RemoteException
close
public void close()
throws IOException,
RemoteException
- Specified by:
close
in interface FileInputStreamProxy
- Throws:
IOException
RemoteException
finalize
public void finalize()
throws IOException,
RemoteException
- Specified by:
finalize
in interface FileInputStreamProxy
- Throws:
IOException
RemoteException
getFD
public FileDescriptor getFD()
throws IOException,
RemoteException
- Specified by:
getFD
in interface FileInputStreamProxy
- Throws:
IOException
RemoteException
read
public int read()
throws IOException,
RemoteException
- Specified by:
read
in interface FileInputStreamProxy
- Throws:
IOException
RemoteException
read
public int read(byte[] b)
throws IOException,
RemoteException
- Description copied from interface:
FileInputStreamProxy
- Read method equivalent to that in FileInputStream. Note that the
byte copy is done on the server. Call getReadByteValues() to retrieve
the bytes on the client.
- Specified by:
read
in interface FileInputStreamProxy
- Throws:
IOException
RemoteException
read
public int read(byte[] b,
int off,
int len)
throws IOException,
RemoteException
- Description copied from interface:
FileInputStreamProxy
- Read method equivalent to that in FileInputStream. Note that the
byte copy is done on the server. Call getReadByteValues() to retrieve
the bytes on the client.
- Specified by:
read
in interface FileInputStreamProxy
- Throws:
IOException
RemoteException
read
public byte[] read(int len)
throws IOException,
RemoteException
- Description copied from interface:
FileInputStreamProxy
- Read method that retrieves a specified number of bytes. Unlike the
other read() methods, this returns a byte array so a call to
getReadByteValues() is not needed.
- Specified by:
read
in interface FileInputStreamProxy
- Throws:
IOException
RemoteException
skip
public long skip(long n)
throws IOException,
RemoteException
- Specified by:
skip
in interface FileInputStreamProxy
- Throws:
IOException
RemoteException
getReadByteValues
public byte[] getReadByteValues()
- Specified by:
getReadByteValues
in interface FileInputStreamProxy
Copyright © 2000, 2002 Insightful Corporation
Warning: Classes not documented in the S-PLUS Programmer's Guide may change in future releases.