Package org.gnome.gio

Class FileOutputStream

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

@Generated("io.github.jwharm.JavaGI") public class FileOutputStream extends OutputStream implements Seekable
GFileOutputStream provides output streams that write their content to a file.

GFileOutputStream implements Seekable, which allows the output 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 output stream, use Seekable.tell(). To find out if a file output stream supports seeking, use Seekable.canSeek().To position a file output stream, use Seekable.seek(long, org.gnome.glib.SeekType, org.gnome.gio.Cancellable). To find out if a file output stream supports truncating, use Seekable.canTruncate(). To truncate a file output stream, use Seekable.truncate(long, org.gnome.gio.Cancellable).