Skip to content

Gio.FilterOutputStream

class — extends OutputStream

Base class for output stream implementations that perform some kind of filtering operation on a base stream. Typical examples of filtering operations are character set conversion, compression and byte order flipping.

Methods

get_base_stream

def get_base_stream(self) -> OutputStream

Gets the base stream for the filter stream.

get_close_base_stream

def get_close_base_stream(self) -> bool

Returns whether the base stream will be closed when stream is closed.

set_close_base_stream

def set_close_base_stream(self, close_base: bool) -> None

Sets whether the base stream will be closed when stream is closed.

Parameters:

  • close_baseTRUE to close the base stream.

Properties

base_stream

base_stream: OutputStream  # read/write

The underlying base stream on which the I/O ops will be done.

close_base_stream

close_base_stream: bool  # read/write

Whether the base stream should be closed when the filter stream is closed.