Class FilterInputStream

All Implemented Interfaces:
AutoCloseable, Proxy, AutoCloseable
Direct Known Subclasses:
BufferedInputStream, ConverterInputStream, FilterInputStream.FilterInputStream$Impl, MultipartInputStream

@Generated("org.javagi.JavaGI") public abstract class FilterInputStream extends InputStream
Base class for input stream implementations that perform some kind of filtering operation on a base stream. Typical examples of filtering operations are character set conversion, compression and byte order flipping.
  • Constructor Details

    • FilterInputStream

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

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

    • getType

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

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

      protected FilterInputStream 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 InputStream
      Returns:
      the instance as if it were its parent type
    • getBaseStream

      public InputStream getBaseStream()
      Gets the base stream for the filter stream.
      Returns:
      a GInputStream.
    • getCloseBaseStream

      public boolean getCloseBaseStream()
      Returns whether the base stream will be closed when this FilterInputStream is closed.
      Returns:
      true if the base stream will be closed.
    • setCloseBaseStream

      public void setCloseBaseStream(boolean closeBase)
      Sets whether the base stream will be closed when this FilterInputStream is closed.
      Parameters:
      closeBase - true to close the base stream.