Gio.FilterInputStream

g GObject.Object GObject.Object Gio.InputStream Gio.InputStream GObject.Object->Gio.InputStream Gio.FilterInputStream Gio.FilterInputStream Gio.InputStream->Gio.FilterInputStream

Subclasses:Gio.BufferedInputStream, Gio.ConverterInputStream

Virtual Methods

Inherited:Gio.InputStream (9), GObject.Object (7)

Properties

Name Type Flags Short Description
base-stream Gio.InputStream r/w/co The underlying base stream on which the io ops will be done.
close-base-stream bool r/w/c If the base stream should be closed when the filter stream is closed.

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
base_stream Gio.InputStream r  
parent_instance Gio.InputStream r  

Class Details

class Gio.FilterInputStream(**kwargs)
Bases:Gio.InputStream
Abstract:Yes
Structure:Gio.FilterInputStreamClass

Base class for input 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.

get_base_stream()[source]
Returns:a Gio.InputStream.
Return type:Gio.InputStream

Gets the base stream for the filter stream.

get_close_base_stream()[source]
Returns:True if the base stream will be closed.
Return type:bool

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

set_close_base_stream(close_base)[source]
Parameters:close_base (bool) – True to close the base stream.

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

Property Details

Gio.FilterInputStream.props.base_stream
Name:base-stream
Type:Gio.InputStream
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The underlying base stream on which the io ops will be done.

Gio.FilterInputStream.props.close_base_stream
Name:close-base-stream
Type:bool
Default Value:True
Flags:READABLE, WRITABLE, CONSTRUCT

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