Package org.gnome.gio
Class DataInputStream.Builder<B extends DataInputStream.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theDataInputStreamobject.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
setBufferSizeMethods inherited from class org.gnome.gio.FilterInputStream.Builder
setBaseStream, setCloseBaseStreamMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theDataInputStreamobject. 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:
buildin classBufferedInputStream.Builder<B extends DataInputStream.Builder<B>>- Returns:
- a new instance of
DataInputStreamwith 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-orderproperty- Returns:
- the
Builderinstance 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-typeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-