Klasse SimpleIOStream

Alle implementierten Schnittstellen:
PointerInterface

public class SimpleIOStream extends IOStream
`GSimpleIOStream` creates a [class@Gio.IOStream] from an arbitrary
[class@Gio.InputStream] and [class@Gio.OutputStream]. This allows any pair of
input and output streams to be used with [class@Gio.IOStream] methods.

This is useful when you obtained a [class@Gio.InputStream] and a
[class@Gio.OutputStream] by other means, for instance creating them with
platform specific methods as
[`g_unix_input_stream_new()`](../gio-unix/ctor.UnixInputStream.new.html)
(from `gio-unix-2.0.pc` / `GioUnix-2.0`), and you want to
take advantage of the methods provided by [class@Gio.IOStream].

https://docs.gtk.org/gio/class.SimpleIOStream.html

  • Konstruktordetails

    • SimpleIOStream

      public SimpleIOStream(PointerContainer pointer)
    • SimpleIOStream

      public SimpleIOStream(@Nonnull InputStream input_stream, @Nonnull OutputStream output_stream)
      Creates a new #GSimpleIOStream wrapping @input_stream and @output_stream.
      See also #GIOStream.
      Parameter:
      input_stream - a #GInputStream.
      output_stream - a #GOutputStream.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()