Class: Gsf::OutfileOpenPkg

Inherits:
Outfile show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from Outfile

#new_child, #new_child_full, #new_child_varg, #open_pkg_add_rel

Methods inherited from Output

#close, #container, #container=, #error, error_id, #is_closed, #is_closed=, #is_closed?, #modtime, #modtime=, #name, #name=, #name_from_filename=, #position, #position=, #printf, #puts, #seek, #set_error, #size, #size=, #tell, unwrap, #vprintf, wrap, #write

Constructor Details

#initialize(sink) ⇒ Gsf::Outfile

Convenience routine to create a GsfOutfileOpenPkg inside sink.

Parameters:

Instance Method Details

#add_extern_rel(target, content_type) ⇒ String

Add an external relation to parent. managed by the parent and should not be changed or freed by the caller.

Parameters:

  • target (String)

    target type

  • content_type (String)

    target content

Returns:

  • (String)

    The id of the relation. The string is

#content_typeString

Returns content-type.

Returns:

  • (String)

    content-type

#content_type=(content_type) ⇒ String

Parameters:

  • content_type (String)

Returns:

  • (String)

    content-type

  • (String)

    content-type

#is_dir=(is_dir) ⇒ Boolean

Parameters:

  • is_dir (Boolean)

Returns:

  • (Boolean)

    is-dir

  • (Boolean)

    is-dir

#is_dir?Boolean

Returns is-dir.

Returns:

  • (Boolean)

    is-dir

#relate(parent, type) ⇒ String

Create a relationship between child and parent of type.

Parameters:

Returns:

  • (String)

    the relID which the caller does not own but will live as long as parent.

#sinkGsf::Outfile

Returns sink.

Returns:

#sink=(sink) ⇒ Gsf::Outfile

Parameters:

Returns: