glib-2.0 Reference Manual

Synopsis

public class IOChannel : Boxed  {
    public                              IOChannel.unix_new        ( int                 fd ) ;
    public                              IOChannel.win32_new_fd    ( int                 fd ) ;
    public                              IOChannel.file            ( string              filename,
                                                                    string              mode ) 
                                                             throws FileError;


    public    int                       unix_get_fd               (  ) ;
    public    void                      init                      (  ) ;
    public    IOStatus                  read_chars                ( char[]              buf,
                                                                    size_t              bytes_read ) 
                                                             throws ConvertError,
                                                                    IOChannelError;
    public    IOStatus                  read_unichar              ( unichar             thechar ) 
                                                             throws ConvertError,
                                                                    IOChannelError;
    public    IOStatus                  read_line                 ( string              str_return,
                                                                    size_t              length,
                                                                    size_t              terminator_pos ) 
                                                             throws ConvertError,
                                                                    IOChannelError;
    public    IOStatus                  read_line_string          ( StringBuilder       buffer,
                                                                    size_t              terminator_pos ) 
                                                             throws ConvertError,
                                                                    IOChannelError;
    public    IOStatus                  read_to_end               ( string              str_return,
                                                                    size_t              length ) 
                                                             throws ConvertError,
                                                                    IOChannelError;
    public    IOStatus                  write_chars               ( char[]              buf,
                                                                    size_t              bytes_written ) 
                                                             throws ConvertError,
                                                                    IOChannelError;
    public    IOStatus                  write_unichar             ( unichar             thechar ) 
                                                             throws ConvertError,
                                                                    IOChannelError;
    public    IOStatus                  flush                     (  ) 
                                                             throws IOChannelError;
    public    IOStatus                  seek_position             ( int64               offset,
                                                                    SeekType            type ) 
                                                             throws IOChannelError;
    public    IOStatus                  shutdown                  ( bool                flush ) 
                                                             throws IOChannelError;
    public    Source                    create_watch              ( IOCondition         condition ) ;
    public    uint                      add_watch                 ( IOCondition         condition,
                                                                    IOFunc              func ) ;
    public    size_t                    get_buffer_size           (  ) ;
    public    void                      set_buffer_size           ( size_t              size ) ;
    public    IOCondition               get_buffer_condition      (  ) ;
    public    IOFlags                   get_flags                 (  ) ;
    public    IOStatus                  set_flags                 ( IOFlags             flags ) 
                                                             throws IOChannelError;
    public    weak string               get_line_term             ( int                 length ) ;
    public    void                      set_line_term             ( string              line_term,
                                                                    int                 length ) ;
    public    bool                      get_buffered              (  ) ;
    public    void                      set_buffered              ( bool                buffered ) ;
    public    weak string               get_encoding              (  ) ;
    public    IOStatus                  set_encoding              ( string              encoding ) 
                                                             throws IOChannelError;
    public    bool                      get_close_on_unref        (  ) ;
    public    void                      set_close_on_unref        ( bool                do_close ) ;
}

IOChannel Description

Details

Constructor Details

IOChannel.unix_new ()
    public                              IOChannel.unix_new        ( int                 fd ) ;		

IOChannel.win32_new_fd ()
    public                              IOChannel.win32_new_fd    ( int                 fd ) ;		

IOChannel.file ()
    public                              IOChannel.file            ( string              filename,
                                                                    string              mode ) 
                                                             throws FileError;		

Field Details

Signal Details

Property Details

Method Details

unix_get_fd ()
    public    int                       unix_get_fd               (  ) ;		

init ()
    public    void                      init                      (  ) ;		

read_chars ()
    public    IOStatus                  read_chars                ( char[]              buf,
                                                                    size_t              bytes_read ) 
                                                             throws ConvertError,
                                                                    IOChannelError;		

read_unichar ()
    public    IOStatus                  read_unichar              ( unichar             thechar ) 
                                                             throws ConvertError,
                                                                    IOChannelError;		

read_line ()
    public    IOStatus                  read_line                 ( string              str_return,
                                                                    size_t              length,
                                                                    size_t              terminator_pos ) 
                                                             throws ConvertError,
                                                                    IOChannelError;		

read_line_string ()
    public    IOStatus                  read_line_string          ( StringBuilder       buffer,
                                                                    size_t              terminator_pos ) 
                                                             throws ConvertError,
                                                                    IOChannelError;		

read_to_end ()
    public    IOStatus                  read_to_end               ( string              str_return,
                                                                    size_t              length ) 
                                                             throws ConvertError,
                                                                    IOChannelError;		

write_chars ()
    public    IOStatus                  write_chars               ( char[]              buf,
                                                                    size_t              bytes_written ) 
                                                             throws ConvertError,
                                                                    IOChannelError;		

write_unichar ()
    public    IOStatus                  write_unichar             ( unichar             thechar ) 
                                                             throws ConvertError,
                                                                    IOChannelError;		

flush ()
    public    IOStatus                  flush                     (  ) 
                                                             throws IOChannelError;		

seek_position ()
    public    IOStatus                  seek_position             ( int64               offset,
                                                                    SeekType            type ) 
                                                             throws IOChannelError;		

shutdown ()
    public    IOStatus                  shutdown                  ( bool                flush ) 
                                                             throws IOChannelError;		

create_watch ()
    public    Source                    create_watch              ( IOCondition         condition ) ;		

add_watch ()
    public    uint                      add_watch                 ( IOCondition         condition,
                                                                    IOFunc              func ) ;		

get_buffer_size ()
    public    size_t                    get_buffer_size           (  ) ;		

set_buffer_size ()
    public    void                      set_buffer_size           ( size_t              size ) ;		

get_buffer_condition ()
    public    IOCondition               get_buffer_condition      (  ) ;		

get_flags ()
    public    IOFlags                   get_flags                 (  ) ;		

set_flags ()
    public    IOStatus                  set_flags                 ( IOFlags             flags ) 
                                                             throws IOChannelError;		

get_line_term ()
    public    weak string               get_line_term             ( int                 length ) ;		

set_line_term ()
    public    void                      set_line_term             ( string              line_term,
                                                                    int                 length ) ;		

get_buffered ()
    public    bool                      get_buffered              (  ) ;		

set_buffered ()
    public    void                      set_buffered              ( bool                buffered ) ;		

get_encoding ()
    public    weak string               get_encoding              (  ) ;		

set_encoding ()
    public    IOStatus                  set_encoding              ( string              encoding ) 
                                                             throws IOChannelError;		

get_close_on_unref ()
    public    bool                      get_close_on_unref        (  ) ;		

set_close_on_unref ()
    public    void                      set_close_on_unref        ( bool                do_close ) ;		


Created by Valadoc