Class SimpleObjectInput.Builder
java.lang.Object
org.wildfly.clustering.marshalling.protostream.SimpleDataInput.Builder
org.wildfly.clustering.marshalling.protostream.SimpleObjectInput.Builder
- Enclosing class:
SimpleObjectInput
Builder of a simple object 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 toObjectInput.readObject().Specifies the values to be returned via consecutive calls toDataInput.readUTF().with(ByteBuffer... buffers) Specifies the values to be returned via consecutive calls toDataInput.readFully(byte[]).
-
Constructor Details
-
Builder
public Builder()Creates a builder of an object input
-
-
Method Details
-
with
Specifies the values to be returned via consecutive calls toObjectInput.readObject().- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Description copied from class:SimpleDataInput.BuilderSpecifies the values to be returned via consecutive calls toDataInput.readUTF().- Overrides:
within classSimpleDataInput.Builder- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Description copied from class:SimpleDataInput.BuilderSpecifies the values to be returned via consecutive calls toDataInput.readFully(byte[]).- Overrides:
within classSimpleDataInput.Builder- Parameters:
buffers- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Description copied from class:SimpleDataInput.BuilderSpecifies the values to be returned via consecutive calls toDataInput.readChar().- Overrides:
within classSimpleDataInput.Builder- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Description copied from class:SimpleDataInput.BuilderSpecifies the values to be returned via consecutive calls toDataInput.readBoolean().- Overrides:
within classSimpleDataInput.Builder- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Description copied from class:SimpleDataInput.BuilderSpecifies the values to be returned via consecutive calls toDataInput.readByte()orDataInput.readUnsignedByte().- Overrides:
within classSimpleDataInput.Builder- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Description copied from class:SimpleDataInput.BuilderSpecifies the values to be returned via consecutive calls toDataInput.readShort().- Overrides:
within classSimpleDataInput.Builder- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Description copied from class:SimpleDataInput.BuilderSpecifies the values to be returned via consecutive calls toDataInput.readInt().- Overrides:
within classSimpleDataInput.Builder- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Description copied from class:SimpleDataInput.BuilderSpecifies the values to be returned via consecutive calls toDataInput.readLong().- Overrides:
within classSimpleDataInput.Builder- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Description copied from class:SimpleDataInput.BuilderSpecifies the values to be returned via consecutive calls toDataInput.readFloat().- Overrides:
within classSimpleDataInput.Builder- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
with
Description copied from class:SimpleDataInput.BuilderSpecifies the values to be returned via consecutive calls toDataInput.readDouble().- Overrides:
within classSimpleDataInput.Builder- Parameters:
values- the consecutive values to be read- Returns:
- a reference to this builder
-
build
Description copied from class:SimpleDataInput.BuilderBuilds a simple data input.- Overrides:
buildin classSimpleDataInput.Builder- Returns:
- a simple data input
-