| OutputStream {arrow} | R Documentation |
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:
-
pathForFileOutputStream, a character file name -
initial_capacityForBufferOutputStream, the size in bytes of the buffer.
Methods
-
$tell(): return the position in the stream -
$close(): close the stream -
$write(x): sendxto the stream -
$capacity(): forBufferOutputStream -
$finish(): forBufferOutputStream -
$GetExtentBytesWritten(): forMockOutputStream, report how many bytes were sent.
[Package arrow version 16.1.0 Index]