Class URISchemeResponse.Builder<B extends URISchemeResponse.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.webkitgtk.URISchemeResponse.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
URISchemeResponse

public static class URISchemeResponse.Builder<B extends URISchemeResponse.Builder<B>> extends GObject.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 URISchemeResponse build()
      Finish building the URISchemeResponse object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to URISchemeResponse.
      Overrides:
      build in class GObject.Builder<B extends URISchemeResponse.Builder<B>>
      Returns:
      a new instance of URISchemeResponse with the properties that were set in the Builder object.
    • setStream

      public B setStream(InputStream stream)
      The input stream to read from.
      Parameters:
      stream - the value for the stream property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.36
    • setStreamLength

      public B setStreamLength(long streamLength)
      The input stream length in bytes, -1 for unknown length.
      Parameters:
      streamLength - the value for the stream-length property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.36