File
Object Hierarchy:
Description:
[
CCode ( type_id =
"jcat_file_get_type ()" ) ]
public class File :
Object
Content:
Creation methods:
- public File ()
Creates a new file.
Methods:
- public void add_item (Item item)
Adds an item to a file.
- public bool export_file (File gfile, ExportFlags flags, Cancellable? cancellable = null) throws Error
Exports a Jcat file to a compressed file.
- public string export_json (ExportFlags flags) throws Error
Exports a Jcat file to raw JSON.
- public bool export_stream (OutputStream ostream, ExportFlags flags, Cancellable? cancellable = null) throws Error
Exports a Jcat file to a compressed stream.
- public Item get_item_by_id (string id) throws Error
Finds the item with the specified ID, falling back to the ID alias if
set.
- public Item get_item_default () throws Error
Finds the default item.
- public GenericArray<unowned Item> get_items ()
Returns all the items in the file.
- public uint32 get_version_major ()
Returns the major version number of the Jcat specification
- public uint32 get_version_minor ()
Returns the minor version number of the Jcat specification
- public bool import_file (File gfile, ImportFlags flags, Cancellable? cancellable = null) throws Error
Imports a compressed Jcat file from an input stream.
- public bool import_json (string json, ImportFlags flags) throws Error
Imports a Jcat file from raw JSON.
- public bool import_stream (InputStream istream, ImportFlags flags, Cancellable? cancellable = null) throws Error
Imports a compressed Jcat file from a file.
- public string to_string ()
Converts the File to a string.
Inherited Members:
All known members inherited from class GLib.Object