Class ConverterOutputStream

All Implemented Interfaces:
AutoCloseable, PollableOutputStream, Proxy, AutoCloseable

@Generated("org.javagi.JavaGI") public class ConverterOutputStream extends FilterOutputStream implements PollableOutputStream

Converter output stream implements OutputStream and allows conversion of data of various types during reading.

As of GLib 2.34, GConverterOutputStream implements PollableOutputStream.

  • Constructor Details

    • ConverterOutputStream

      public ConverterOutputStream(MemorySegment address)
      Create a ConverterOutputStream instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ConverterOutputStream

      public ConverterOutputStream(OutputStream baseStream, Converter converter)
      Creates a new converter output stream for the baseStream.
      Parameters:
      baseStream - a GOutputStream
      converter - a GConverter
    • ConverterOutputStream

      public ConverterOutputStream()
      Create a new ConverterOutputStream.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the ConverterOutputStream class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected ConverterOutputStream asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class FilterOutputStream
      Returns:
      the instance as if it were its parent type
    • getConverter

      public Converter getConverter()
      Gets the GConverter that is used by converterStream.
      Returns:
      the converter of the converter output stream
      Since:
      2.24
    • builder

      A ConverterOutputStream.Builder object constructs a ConverterOutputStream with the specified properties. Use the various set...() methods to set properties, and finish construction with ConverterOutputStream.Builder.build().
      Returns:
      the builder object