Description Usage Arguments Fields and Methods Author(s) Examples
Package: R.io
Class BufferedOutputStream
Object
~~|
~~+--
OutputStream
~~~~~~~|
~~~~~~~+--
BufferedOutputStream
Directly known subclasses:
public static class BufferedOutputStream
extends OutputStream
Class providing an output stream of bytes to a file.
1 | BufferedOutputStream(out=NULL, size=512)
|
out |
An OutputStream to write to. |
size |
The size of the internal buffer. |
Methods:
available | - | |
close | - | |
flush | - | |
write | Writes one or more bytes to the output stream. | |
Methods inherited from OutputStream:
close, finalize, flush, write
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clone, detach, equals, extend, finalize, gc, getEnvironment, getFields, getInstanciationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, save
Henrik Bengtsson (http://www.braju.com/R/)
1 2 3 4 5 6 7 8 | stdout <- PrintStream(ConnectionOutputStream(stdout()))
out <- BufferedOutputStream(stdout)
for (k in seq(1025)) {
s <- paste(as.character(k), ", ", sep="")
write(out, s)
}
write(out, "DONE!\n")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.