|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
org.rosuda.REngine.Rserve.RFileInputStream
public class RFileInputStream
RFileInputStream is an InputStream to transfer files
from Rserve server to the client. It is used very much like
a FileInputStream. Currently mark and seek is not supported.
The current implementation is also "one-shot" only, that means the file
can be read only once.
| Method Summary | |
|---|---|
void |
close()
close stream - is not related to the actual RConnection, calling close does not close the RConnection |
int |
read()
reads one byte from the file. |
int |
read(byte[] b,
int off,
int len)
Reads specified number of bytes (or less) from the remote file. |
| Methods inherited from class java.io.InputStream |
|---|
available, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int read()
throws IOException
RFileInputStream provides no buffering. This means that each
call to this function leads to a complete packet exchange between
the server and the client. Use read(byte[],int,int) instead
whenever possible. In fact this function calls #read(b,0,1).
read in class InputStreamIOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamb - buffer to store the read bytesoff - offset where to strat filling the bufferlen - maximal number of bytes to read
IOException
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||