Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

OutputStream

OutputStream classes


Description

FileOutputStream is for writing to a file; BufferOutputStream writes to a buffer; You can create one and pass it to any of the table writers, for example.

Factory

The $create() factory methods instantiate the OutputStream object and take the following arguments, depending on the subclass:

  • path For FileOutputStream, a character file name

  • initial_capacity For BufferOutputStream, the size in bytes of the buffer.

Methods

  • $tell(): return the position in the stream

  • $close(): close the stream

  • $write(x): send x to the stream

  • $capacity(): for BufferOutputStream

  • $finish(): for BufferOutputStream

  • $GetExtentBytesWritten(): for MockOutputStream, report how many bytes were sent.


arrow

Integration to 'Apache' 'Arrow'

v4.0.0.1
Apache License (>= 2.0)
Authors
Neal Richardson [aut, cre], Ian Cook [aut], Jonathan Keane [aut], Romain François [aut] (<https://orcid.org/0000-0002-2444-4226>), Jeroen Ooms [aut], Javier Luraschi [ctb], Jeffrey Wong [ctb], Apache Arrow [aut, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.