Back to Seed Clases

Gio


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child markerGio.IOStream
parent-child marker Gio.FileIOStream

Class Gio.FileIOStream

Import line: Gio = imports.gi.Gio;
GIR File: Gio-2.0.gir
C documentation: GFileIOStream
Class : FileIOStream
Implements: Gio.Seekable
Extends: Gio.IOStream
GFileIOStream provides io streams that both read and write to the same
file handle.
GFileIOStream implements GSeekable, which allows the io
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 io stream, use
g_seekable_tell().
To find out if a file io stream supports seeking, use g_seekable_can_seek().
To position a file io stream, use g_seekable_seek().
To find out if a file io stream supports truncating, use
g_seekable_can_truncate(). To truncate a file io
stream, use g_seekable_truncate().
The default implementation of all the GFileIOStream operations
and the implementation of GSeekable just call into the same operations
on the output stream.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gio.File
Method
create_readwrite (FileCreateFlags flags, Cancellable cancellable) : Gio.FileIOStream
Creates a new file and returns a stream for reading and writing to it.
Gio.File
Method
create_readwrite_finish (AsyncResult res) : Gio.FileIOStream
Finishes an asynchronous file create operation started with
g_file_create_readwrite_async().
Gio.File
Method
open_readwrite (Cancellable cancellable) : Gio.FileIOStream
Opens an existing file for reading and writing.
Gio.File
Method
open_readwrite_finish (AsyncResult res) : Gio.FileIOStream
Finishes an asynchronous file read operation started with
g_file_open_readwrite_async().
Gio.File
Method
replace_readwrite (String etag, gboolean make_backup, FileCreateFlags flags, Cancellable cancellable) : Gio.FileIOStream
Returns an output stream for overwriting the file in readwrite mode,
possibly creating a backup copy of the file first.
Gio.File
Method
replace_readwrite_finish (AsyncResult res) : Gio.FileIOStream
Finishes an asynchronous file replace operation started with
g_file_replace_readwrite_async().
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:11 GMT+0800 (HKT)