Class ConverterInputStream

All Implemented Interfaces:
AutoCloseable, PollableInputStream, Proxy, AutoCloseable

@Generated("org.javagi.JavaGI") public class ConverterInputStream extends FilterInputStream implements PollableInputStream

Converter input stream implements InputStream and allows conversion of data of various types during reading.

As of GLib 2.34, GConverterInputStream implements PollableInputStream.

  • Constructor Details

    • ConverterInputStream

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

      public ConverterInputStream(InputStream baseStream, Converter converter)
      Creates a new converter input stream for the baseStream.
      Parameters:
      baseStream - a GInputStream
      converter - a GConverter
    • ConverterInputStream

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

    • getType

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

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

      protected ConverterInputStream 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 FilterInputStream
      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 input stream
      Since:
      2.24
    • builder

      public static ConverterInputStream.Builder<? extends ConverterInputStream.Builder> builder()
      A ConverterInputStream.Builder object constructs a ConverterInputStream with the specified properties. Use the various set...() methods to set properties, and finish construction with ConverterInputStream.Builder.build().
      Returns:
      the builder object