BufferedOutputStream#
Superclasses: FilterOutputStream, OutputStream, Object
Implemented Interfaces: Seekable
Buffered output stream implements FilterOutputStream and provides
for buffered writes.
By default, GBufferedOutputStream's buffer size is set at 4 kilobytes.
To create a buffered output stream, use new,
or new_sized to specify the buffer’s size
at construction.
To get the size of a buffer within a buffered input stream, use
get_buffer_size. To change the size of a
buffered output stream’s buffer, use set_buffer_size.
Note that the buffer’s size cannot be reduced below the size of the data within the buffer.
Constructors#
- class BufferedOutputStream
 - classmethod new(base_stream: OutputStream) OutputStream#
 Creates a new buffered output stream for a base stream.
- Parameters:
 base_stream – a
OutputStream.
- classmethod new_sized(base_stream: OutputStream, size: int) OutputStream#
 Creates a new buffered output stream with a given buffer size.
- Parameters:
 base_stream – a
OutputStream.size – a
gsize.
Methods#
- class BufferedOutputStream
 - 
- set_auto_grow(auto_grow: bool) None#
 Sets whether or not the
stream's buffer should automatically grow. Ifauto_growis true, then each write will just make the buffer larger, and you must manually flush the buffer to actually write out the data to the underlying stream.- Parameters:
 auto_grow – a
gboolean.