Skip to content

Gio.ConverterInputStream

class — extends FilterInputStream, PollableInputStream

Converter input stream implements InputStream and allows conversion of data of various types during reading.

As of GLib 2.34, GConverterInputStream implements PollableInputStream.

Constructors

new

@classmethod
def new(cls, base_stream: InputStream, converter: Converter) -> InputStream

Creates a new converter input stream for the base_stream.

Parameters:

Methods

get_converter

def get_converter(self) -> Converter

Gets the Converter that is used by converter_stream.

Properties

converter

converter: Converter  # read/write

The converter object.