Package org.gnome.gio

Class InputStream

java.lang.Object
All Implemented Interfaces:
Proxy, AutoCloseable, AutoCloseable
Direct Known Subclasses:
FileInputStream, FilterInputStream, InputStream.InputStreamImpl, MemoryInputStream, PollableInputStream.PollableInputStreamImpl, UnixInputStream, Win32InputStream

@Generated("io.github.jwharm.JavaGI") public abstract class InputStream extends GObject implements AutoCloseable
GInputStream is a base class for implementing streaming input.

It has functions to read from a stream (read(io.github.jwharm.javagi.base.Out<byte[]>, org.gnome.gio.Cancellable)), to close a stream (close(org.gnome.gio.Cancellable)) and to skip some content (skip(long, org.gnome.gio.Cancellable)).

To copy the content of an input stream to an output stream without manually handling the reads and writes, use OutputStream.splice(org.gnome.gio.InputStream, java.util.Set<org.gnome.gio.OutputStreamSpliceFlags>, org.gnome.gio.Cancellable).

See the documentation for IOStream for details of thread safety of streaming APIs.

All of these functions have async variants too.