Class: Gsf::Output
- Inherits:
-
Object
- Object
- Gsf::Output
- Defined in:
- (unknown)
Direct Known Subclasses
Outfile, OutputBzip, OutputCsv, OutputGZip, OutputGio, OutputIOChannel, OutputIconv, OutputMemory, OutputStdio
Class Method Summary collapse
- .error_id ⇒ GLib::Quark
-
.unwrap(wrapper, wrapee) ⇒ Boolean
True if the unwrapping succeeded.
-
.wrap(wrapper, wrapee) ⇒ Boolean
True if the wrapping succeeded.
Instance Method Summary collapse
-
#close ⇒ Boolean
Close a stream.
-
#container ⇒ Gsf::Outfile
The container, optionally nil, in which this output lives.
-
#container=(container) ⇒ Gsf::Outfile
The container, optionally nil, in which this output lives.
-
#error ⇒ GLib::Error
The last error logged on the output.
-
#is_closed ⇒ Boolean
True if output has already been closed.
-
#is_closed=(is_closed) ⇒ Boolean
true if the output has been closed.
-
#is_closed? ⇒ Boolean
true if the output has been closed.
-
#modtime ⇒ GLib::DateTime
The time the output was last updated.
-
#modtime=(modtime) ⇒ GLib::DateTime
The time the output was last updated.
-
#name ⇒ String
Name.
- #name=(name) ⇒ String
-
#name_from_filename=(filename) ⇒ Boolean
This is a utility routine that should only be used by derived outputs..
-
#position ⇒ Integer
The current position in the output.
-
#position=(position) ⇒ Integer
The current position in the output.
-
#printf(format, array) ⇒ Boolean
Output Varargs to output using the format string format, similar to printf 3.
-
#puts(line) ⇒ Boolean
Like fputs, this assumes that the line already ends with a newline.
-
#seek(offset, whence) ⇒ Boolean
Reposition in output stream output.
-
#set_error(code, format, array) ⇒ Boolean
This is a utility routine that should only be used by derived outputs..
-
#size ⇒ Integer
The current file size.
-
#size=(size) ⇒ Integer
The current file size.
-
#tell ⇒ Gsf::gsf_off_t
Tell the current position in output, similar to ftell 3.
-
#vprintf(format, args) ⇒ Gsf::gsf_off_t
Output args to output using the format string format, similar to vprintf 3.
-
#write(num_bytes, data) ⇒ Boolean
Write num_bytes of data to output.
Class Method Details
.error_id ⇒ GLib::Quark
.unwrap(wrapper, wrapee) ⇒ Boolean
Returns true if the unwrapping succeeded.
.wrap(wrapper, wrapee) ⇒ Boolean
Returns true if the wrapping succeeded.
Instance Method Details
#close ⇒ Boolean
Close a stream.
#container ⇒ Gsf::Outfile
The container, optionally nil, in which this output lives.
#container=(container) ⇒ Gsf::Outfile
The container, optionally nil, in which this output lives.
#error ⇒ GLib::Error
Returns the last error logged on the output.
#is_closed ⇒ Boolean
Returns true if output has already been closed.
#is_closed=(is_closed) ⇒ Boolean
true if the output has been closed.
#is_closed? ⇒ Boolean
true if the output has been closed.
#modtime ⇒ GLib::DateTime
The time the output was last updated. This must be set on object construction and represents the timestamp to put on the resulting file or Gsf::Outfile member. Not all derived classes will actually do anything with this property.
#modtime=(modtime) ⇒ GLib::DateTime
The time the output was last updated. This must be set on object construction and represents the timestamp to put on the resulting file or Gsf::Outfile member. Not all derived classes will actually do anything with this property.
#name ⇒ String
Returns name.
#name=(name) ⇒ String
#name_from_filename=(filename) ⇒ Boolean
This is a utility routine that should only be used by derived outputs.
#position ⇒ Integer
The current position in the output.
#position=(position) ⇒ Integer
The current position in the output.
#printf(format, array) ⇒ Boolean
Output Varargs to output using the format string format, similar to printf 3.
#puts(line) ⇒ Boolean
Like fputs, this assumes that the line already ends with a newline
#seek(offset, whence) ⇒ Boolean
Reposition in output stream output. whence specifies what the offset is relative to: the beginning of the stream (%G_SEEK_SET), current position in the stream (%G_SEEK_CUR) or the end of the stream (%G_SEEK_END). This function is similar to fseek 3.
#set_error(code, format, array) ⇒ Boolean
This is a utility routine that should only be used by derived outputs.
#size ⇒ Integer
The current file size.
#size=(size) ⇒ Integer
The current file size.
#tell ⇒ Gsf::gsf_off_t
Tell the current position in output, similar to ftell 3.
#vprintf(format, args) ⇒ Gsf::gsf_off_t
Output args to output using the format string format, similar to vprintf 3.
#write(num_bytes, data) ⇒ Boolean
Write num_bytes of data to output.