gio.OutputStreamBase class for implementing streaming inputSynopsisgio.OutputStreamgobject.GObjectclear_pendingclosecancellableNoneclose_asynccallbackio_priorityglib.PRIORITY_DEFAULTcancellableNoneuser_dataNoneclose_finishresultflushcancellableNoneflush_asynccallbackio_priorityglib.PRIORITY_DEFAULTcancellableNoneuser_dataNoneflush_finishresulthas_pendingis_closedset_pendingsplicecancellableNoneflagsgio.OUTPUT_STREAM_SPLICE_NONEsplice_asyncsourcecallbackflagsgio.OUTPUT_STREAM_SPLICE_NONEio_priorityglib.PRIORITY_DEFAULTcancellableNoneuser_dataNonesplice_finishresultwritebuffercancellableNonewrite_asyncbuffercallbackio_priorityglib.PRIORITY_DEFAULTcancellableNoneuser_dataNonewrite_finishresultAncestry+-- gobject.GObject
+-- gio.OutputStream
Descriptiongio.OutputStream
has functions to write from a stream (
gio.OutputStream.write()
), to close a stream (
gio.OutputStream.close()
) and to flush pending writes (
gio.OutputStream.flush()
).
To copy the content of an input stream to an output stream without manually
handling the reads and writes, use
gio.OutputStream.splice().
All of these functions have async variants too.
Methods Unfinished section, you may want to see the relevant C API docs for methods descriptions.