Stream
Object Hierarchy:
Description:
[ CCode ( type_id = "camel_stream_get_type ()" ) ]
public class Stream : Object, Seekable
Content:
Properties:
Creation methods:
Methods:
- public virtual int close (Cancellable? cancellable = null) throws Error
Closes the stream.
- public virtual bool eos ()
Tests if there are bytes left to read on the
this object.
- public virtual int flush (Cancellable? cancellable = null) throws Error
Flushes any buffered data to the stream's backing store.
- public virtual ssize_t read (char[] buffer, Cancellable? cancellable = null) throws Error
Attempts to read up to buffer.length
bytes from
this into buffer
.
- public IOStream? ref_base_stream ()
Returns the IOStream for
this.
- public void set_base_stream (IOStream base_stream)
Replaces the IOStream passed to
Stream with base_stream
.
- public virtual ssize_t write (char[] buffer, Cancellable? cancellable = null) throws Error
Attempts to write up to buffer.length
bytes of
buffer
into this.
- public ssize_t write_string (string string, Cancellable? cancellable = null) throws Error
Writes the string to the stream.
- public ssize_t write_to_stream (Stream output_stream, Cancellable? cancellable = null) throws Error
Write all of a stream (until eos) into another stream, in a blocking
fashion.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface GLib.Seekable