Package org.gnome.gio

Class FileIOStream

java.lang.Object
All Implemented Interfaces:
Proxy, AutoCloseable, AutoCloseable, Seekable

@Generated("io.github.jwharm.JavaGI") public class FileIOStream extends IOStream implements Seekable
GFileIOStream provides I/O streams that both read and write to the same file handle.

GFileIOStream implements Seekable, which allows the I/O stream to jump to arbitrary positions in the file and to truncate the file, provided the filesystem of the file supports these operations.

To find the position of a file I/O stream, use Seekable.tell().

To find out if a file I/O stream supports seeking, use Seekable.canSeek(). To position a file I/O stream, use Seekable.seek(long, org.gnome.glib.SeekType, org.gnome.gio.Cancellable). To find out if a file I/O stream supports truncating, use Seekable.canTruncate(). To truncate a file I/O stream, use Seekable.truncate(long, org.gnome.gio.Cancellable).

The default implementation of all the GFileIOStream operations and the implementation of Seekable just call into the same operations on the output stream.