File: OutputStream.Rd

package info (click to toggle)
apache-arrow 23.0.1-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 76,220 kB
  • sloc: cpp: 654,608; python: 70,522; ruby: 45,964; ansic: 18,742; sh: 7,365; makefile: 669; javascript: 125; xml: 41
file content (38 lines) | stat: -rw-r--r-- 1,140 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/io.R
\docType{class}
\name{OutputStream}
\alias{OutputStream}
\alias{FileOutputStream}
\alias{BufferOutputStream}
\title{OutputStream classes}
\description{
\code{FileOutputStream} is for writing to a file;
\code{BufferOutputStream} writes to a buffer;
You can create one and pass it to any of the table writers, for example.
}
\section{Factory}{


The \verb{$create()} factory methods instantiate the \code{OutputStream} object and
take the following arguments, depending on the subclass:
\itemize{
\item \code{path} For \code{FileOutputStream}, a character file name
\item \code{initial_capacity} For \code{BufferOutputStream}, the size in bytes of the
buffer.
}
}

\section{Methods}{

\itemize{
\item \verb{$tell()}: return the position in the stream
\item \verb{$close()}: close the stream
\item \verb{$write(x)}: send \code{x} to the stream
\item \verb{$capacity()}: for \code{BufferOutputStream}
\item \verb{$finish()}: for \code{BufferOutputStream}
\item \verb{$GetExtentBytesWritten()}: for \code{MockOutputStream}, report how many bytes
were sent.
}
}