Package org.gnome.gio
Class DataInputStream.Builder<B extends DataInputStream.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.InputStream.Builder<B>
org.gnome.gio.FilterInputStream.Builder<B>
org.gnome.gio.BufferedInputStream.Builder<B>
org.gnome.gio.DataInputStream.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
DataInputStream
public static class DataInputStream.Builder<B extends DataInputStream.Builder<B>>
extends BufferedInputStream.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theDataInputStream
object.setByteOrder
(DataStreamByteOrder byteOrder) The :byte-order property determines the byte ordering that is used when reading multi-byte entities (such as integers) from the stream.setNewlineType
(DataStreamNewlineType newlineType) The :newline-type property determines what is considered as a line ending when reading complete lines from the stream.Methods inherited from class org.gnome.gio.BufferedInputStream.Builder
setBufferSize
Methods inherited from class org.gnome.gio.FilterInputStream.Builder
setBaseStream, setCloseBaseStream
Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theDataInputStream
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toDataInputStream
.- Overrides:
build
in classBufferedInputStream.Builder<B extends DataInputStream.Builder<B>>
- Returns:
- a new instance of
DataInputStream
with the properties that were set in the Builder object.
-
setByteOrder
The :byte-order property determines the byte ordering that is used when reading multi-byte entities (such as integers) from the stream.- Parameters:
byteOrder
- the value for thebyte-order
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setNewlineType
The :newline-type property determines what is considered as a line ending when reading complete lines from the stream.- Parameters:
newlineType
- the value for thenewline-type
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-