gio.file_output_stream
Module for [FileOutputStream] class
Types 3
[gio.file_output_stream.FileOutputStream] provides output streams that write their content to a file.
[gio.file_output_stream.FileOutputStream] implements [gio.seekable.Seekable], which allows the output stream to jump to arbitrary positions in the file and to truncate the file, provided the filesystem of the file supports these operations.
To find the position of a file output stream, use [gio.seekable.Seekable.tell]. To find out if a file output stream supports seeking, use [gio.seekable.Seekable.canSeek].To position a file output stream, use [gio.seekable.Seekable.seek]. To find out if a file output stream supports truncating, use [gio.seekable.Seekable.canTruncate]. To truncate a file output stream, use [gio.seekable.Seekable.truncate].
FileOutputStream self()Returns `this`, for use in `with` statements.FileOutputStreamGidBuilder builder()Get builder for [gio.fileoutputstream.FileOutputStream] Returns: New builder objectstring getEtag()Gets the entity tag for the file when it has been written. This must be called after the stream has been written and closed, as the etag can change while writing. Returns: the entity tag for the st...gio.file_info.FileInfo queryInfo(string attributes, gio.cancellable.Cancellable cancellable = null)Queries a file output stream for the given attributes. This function blocks while querying the stream. For the asynchronous version of this function, see [gio.fileoutputstream.FileOutputStream.quer...void queryInfoAsync(string attributes, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously queries the stream for a #GFileInfo. When completed, callback will be called with a #GAsyncResult which can be used to finish the operation with [gio.fileoutputstream.FileOutputStrea...gio.file_info.FileInfo queryInfoFinish(gio.async_result.AsyncResult result)Finalizes the asynchronous query started by [gio.fileoutputstream.FileOutputStream.queryInfoAsync].Fluent builder for [gio.file_output_stream.FileOutputStream]