|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream org.rosuda.REngine.Rserve.RFileOutputStream
public class RFileOutputStream
RFileOutputStream is an OutputStream
to transfer files
from the client to Rserve server. It is used very much like
a FileOutputStream
. Currently mark and seek is not supported.
The current implementation is also "one-shot" only, that means the file
can be written only once.
Method Summary | |
---|---|
void |
close()
close stream - is not related to the actual RConnection, calling close does not close the RConnection. |
void |
flush()
currently (Rserve 0.3) there is no way to force flush on the remote side, hence this function is noop. |
void |
write(byte[] b)
writes the content of b into the file. |
void |
write(byte[] b,
int off,
int len)
Writes specified number of bytes to the remote file. |
void |
write(int b)
writes one byte to the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void write(int b) throws java.io.IOException
RFileOutputStream
provides no buffering. This means that each
call to this function leads to a complete packet exchange between
the server and the client. Use write(byte[])
instead
whenever possible. In fact this function calls write(b,0,1)
.
write
in class java.io.OutputStream
b
- byte to write
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write(b,0,b.length)
.
write
in class java.io.OutputStream
b
- content to write
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
b
- buffer containing the bytes to writeoff
- offset where to startlen
- number of bytes to write
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |