Class FilterOutputStream

All Implemented Interfaces:
AutoCloseable, Proxy, AutoCloseable
Direct Known Subclasses:
BufferedOutputStream, ConverterOutputStream, DataOutputStream, FilterOutputStream.FilterOutputStream$Impl

@Generated("org.javagi.JavaGI") public abstract class FilterOutputStream extends OutputStream
Base class for output 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

    • FilterOutputStream

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

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

    • getType

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

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

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

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

      public boolean getCloseBaseStream()
      Returns whether the base stream will be closed when this FilterOutputStream 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 FilterOutputStream is closed.
      Parameters:
      closeBase - TRUE to close the base stream.