S-PLUS Connect/Java v1.0

com.insightful.splus
Class FileInputStreamProxyImpl

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bycom.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

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
FileInputStreamProxyImpl(String filename)
           
FileInputStreamProxyImpl(String filename, boolean doSSL)
           
 
Method Summary
 int available()
           
 void close()
           
 void finalize()
           
 FileDescriptor getFD()
           
 byte[] getReadByteValues()
           
 int read()
           
 int read(byte[] b)
          Read method equivalent to that in FileInputStream.
 int read(byte[] b, int off, int len)
          Read method equivalent to that in FileInputStream.
 byte[] read(int len)
          Read method that retrieves a specified number of bytes.
 long skip(long n)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileInputStreamProxyImpl

public FileInputStreamProxyImpl(String filename,
                                boolean doSSL)
                         throws FileNotFoundException,
                                RemoteException

FileInputStreamProxyImpl

public FileInputStreamProxyImpl(String filename)
                         throws FileNotFoundException,
                                RemoteException
Method Detail

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

S-PLUS Connect/Java v1.0

Copyright © 2000, 2002 Insightful Corporation
Warning: Classes not documented in the S-PLUS Programmer's Guide may change in future releases.