Class FilterOutputStream.Builder<B extends FilterOutputStream.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Direct Known Subclasses:
BufferedOutputStream.Builder, ConverterOutputStream.Builder, DataOutputStream.Builder
Enclosing class:
FilterOutputStream

public static class FilterOutputStream.Builder<B extends FilterOutputStream.Builder<B>> extends OutputStream.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public FilterOutputStream build()
      Finish building the FilterOutputStream object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to FilterOutputStream.
      Overrides:
      build in class OutputStream.Builder<B extends FilterOutputStream.Builder<B>>
      Returns:
      a new instance of FilterOutputStream with the properties that were set in the Builder object.
    • setBaseStream

      public B setBaseStream(OutputStream baseStream)
      The underlying base stream on which the I/O ops will be done.
      Parameters:
      baseStream - the value for the base-stream property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setCloseBaseStream

      public B setCloseBaseStream(boolean closeBaseStream)
      Whether the base stream should be closed when the filter stream is closed.
      Parameters:
      closeBaseStream - the value for the close-base-stream property
      Returns:
      the Builder instance is returned, to allow method chaining