Class: Gio::FileInputStream
- Inherits:
-
Object
- Object
- Gio::FileInputStream
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#query_info(attributes, cancellable) ⇒ Gio::FileInfo
Queries a file input stream the given attributes.
-
#query_info_async(attributes, io_priority, cancellable, callback, user_data) ⇒ nil
Queries the stream information asynchronously.
-
#query_info_finish(result) ⇒ Gio::FileInfo
Finishes an asynchronous info query operation.
Instance Method Details
#query_info(attributes, cancellable) ⇒ Gio::FileInfo
Queries a file input stream the given attributes. This function blocks while querying the stream. For the asynchronous (non-blocking) version of this function, see g_file_input_stream_query_info_async(). While the stream is blocked, the stream will set the pending flag internally, and any other operations on the stream will fail with %G_IO_ERROR_PENDING.
#query_info_async(attributes, io_priority, cancellable, callback, user_data) ⇒ nil
Queries the stream information asynchronously. When the operation is finished callback will be called. You can then call g_file_input_stream_query_info_finish() to get the result of the operation.
For the synchronous version of this function, see g_file_input_stream_query_info().
If cancellable is not nil, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error %G_IO_ERROR_CANCELLED will be set
#query_info_finish(result) ⇒ Gio::FileInfo
Finishes an asynchronous info query operation.