Class SimpleIOStream

All Implemented Interfaces:
PointerInterface

public class SimpleIOStream extends IOStream
GSimpleIOStream creates a #GIOStream from an arbitrary #GInputStream and
#GOutputStream. This allows any pair of input and output streams to be used
with #GIOStream methods.

This is useful when you obtained a #GInputStream and a #GOutputStream
by other means, for instance creating them with platform specific methods as
g_unix_input_stream_new() or g_win32_input_stream_new(), and you want
to take advantage of the methods provided by #GIOStream.

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

  • Constructor Details

    • 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.
      Parameters:
      input_stream - a #GInputStream.
      output_stream - a #GOutputStream.
  • Method Details

    • 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()