Class SimpleDataInput.Builder
java.lang.Object
org.wildfly.clustering.marshalling.protostream.SimpleDataInput.Builder
- Direct Known Subclasses:
SimpleObjectInput.Builder
- Enclosing class:
SimpleDataInput
Builds a simple data input.
- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a simple data input.with(boolean... values) Specifies the values to be returned via consecutive calls toDataInput.readBoolean().with(byte... values) Specifies the values to be returned via consecutive calls toDataInput.readByte()orDataInput.readUnsignedByte().with(char... values) Specifies the values to be returned via consecutive calls toDataInput.readChar().with(double... values) Specifies the values to be returned via consecutive calls toDataInput.readDouble().with(float... values) Specifies the values to be returned via consecutive calls toDataInput.readFloat().with(int... values) Specifies the values to be returned via consecutive calls toDataInput.readInt().with(long... values) Specifies the values to be returned via consecutive calls toDataInput.readLong().with(short... values) Specifies the values to be returned via consecutive calls toDataInput.readShort().Specifies the values to be returned via consecutive calls toDataInput.readUTF().with(ByteBuffer... values) Specifies the values to be returned via consecutive calls toDataInput.readFully(byte[]).
-
Constructor Details
-
Builder
public Builder()Constructs a builder of a data input.
-
-
Method Details
-
with
Specifies the values to be returned via consecutive calls toDataInput.readUTF().- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Specifies the values to be returned via consecutive calls toDataInput.readFully(byte[]).- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Specifies the values to be returned via consecutive calls toDataInput.readChar().- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Specifies the values to be returned via consecutive calls toDataInput.readBoolean().- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Specifies the values to be returned via consecutive calls toDataInput.readByte()orDataInput.readUnsignedByte().- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Specifies the values to be returned via consecutive calls toDataInput.readShort().- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Specifies the values to be returned via consecutive calls toDataInput.readInt().- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Specifies the values to be returned via consecutive calls toDataInput.readLong().- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Specifies the values to be returned via consecutive calls toDataInput.readFloat().- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Specifies the values to be returned via consecutive calls toDataInput.readDouble().- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
build
-