wxRuby Documentation Home

Wx::BufferedOutputStream

This stream acts as a cache. It caches the bytes to be written to the specified
output stream (See FilterOutputStream). The
data is only written when the cache is full, when the buffered stream is
destroyed or when calling SeekO().

This class may not be used without some other stream to write the data
to (such as a file stream or a memory stream).

Derived from

FilterOutputStream

See also

StreamBuffer, OutputStream

Methods

BufferedOutputStream.new

BufferedOutputStream.new(%(arg-type)OutputStream% parent)

Creates a buffered stream using a buffer of a default size of 1024 bytes for cashing
the stream parent.

destructor()

Destructor. Calls Sync() and destroys the internal buffer.

BufferedOutputStream#seek_o

off_t seek_o(%(arg-type)off_t% pos, SeekMode mode)

Calls Sync() and changes the stream position.

BufferedOutputStream#sync

sync()

Flushes the buffer and calls Sync() on the parent stream.

[This page automatically generated from the Textile source at 2023-06-03 08:07:28 +0000]