BufferedOutputStream: Class providing an output stream of bytes to a file

Description Usage Arguments Fields and Methods Author(s) Examples

Description

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.

Usage

1

Arguments

out

An OutputStream to write to.

size

The size of the internal buffer.

Fields and Methods

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

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

Examples

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")

HenrikBengtsson/R.io documentation built on May 6, 2019, 11:54 p.m.