Liking cljdoc? Tell your friends :D

jdk.io.BufferedOutputStream

The class implements a buffered output stream. By setting up such an output stream, an application can write bytes to the underlying output stream without necessarily causing a call to the underlying system for each byte written.

The class implements a buffered output stream. By setting up such
an output stream, an application can write bytes to the underlying
output stream without necessarily causing a call to the underlying
system for each byte written.
raw docstring

->buffered-output-streamclj

(->buffered-output-stream out)
(->buffered-output-stream out size)

Constructor.

Creates a new buffered output stream to write data to the specified underlying output stream with the specified buffer size.

out - the underlying output stream. - java.io.OutputStream size - the buffer size. - int

throws: java.lang.IllegalArgumentException - if size <= 0.

Constructor.

Creates a new buffered output stream to write data to the
 specified underlying output stream with the specified buffer
 size.

out - the underlying output stream. - `java.io.OutputStream`
size - the buffer size. - `int`

throws: java.lang.IllegalArgumentException - if size <= 0.
raw docstring

flushclj

(flush this)

Flushes this buffered output stream. This forces any buffered output bytes to be written out to the underlying output stream.

throws: java.io.IOException - if an I/O error occurs.

Flushes this buffered output stream. This forces any buffered
 output bytes to be written out to the underlying output stream.

throws: java.io.IOException - if an I/O error occurs.
raw docstring

writeclj

(write this b)
(write this b off len)

Writes len bytes from the specified byte array starting at offset off to this buffered output stream.

Ordinarily this method stores bytes from the given array into this stream's buffer, flushing the buffer to the underlying output stream as needed. If the requested length is at least as large as this stream's buffer, however, then this method will flush the buffer and write the bytes directly to the underlying output stream. Thus redundant BufferedOutputStreams will not copy data unnecessarily.

b - the data. - byte[] off - the start offset in the data. - int len - the number of bytes to write. - int

throws: java.io.IOException - if an I/O error occurs.

Writes len bytes from the specified byte array
 starting at offset off to this buffered output stream.

  Ordinarily this method stores bytes from the given array into this
 stream's buffer, flushing the buffer to the underlying output stream as
 needed.  If the requested length is at least as large as this stream's
 buffer, however, then this method will flush the buffer and write the
 bytes directly to the underlying output stream.  Thus redundant
 BufferedOutputStreams will not copy data unnecessarily.

b - the data. - `byte[]`
off - the start offset in the data. - `int`
len - the number of bytes to write. - `int`

throws: java.io.IOException - if an I/O error occurs.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close