Class SimpleDataOutput.Builder
java.lang.Object
org.wildfly.clustering.marshalling.protostream.SimpleDataOutput.Builder
- Direct Known Subclasses:
SimpleObjectOutput.Builder
- Enclosing class:
SimpleDataOutput
Builds a simple data output.
- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a simple data output.with(boolean[] values) Specifies the values to be consumed by consecutive calls toDataOutput.writeBoolean(boolean).with(byte[] values) Specifies the values to be consumed by consecutive calls toDataOutput.write(byte[]).with(char[] values) Specifies the values to be consumed by consecutive calls toDataOutput.writeChar(int).with(double[] values) Specifies the values to be consumed by consecutive calls toDataOutput.writeDouble(double).with(float[] values) Specifies the values to be consumed by consecutive calls toDataOutput.writeFloat(float).with(int[] values) Specifies the values to be consumed by consecutive calls toDataOutput.writeInt(int).with(long[] values) Specifies the values to be consumed by consecutive calls toDataOutput.writeLong(long).with(short[] values) Specifies the values to be consumed by consecutive calls toDataOutput.writeShort(int).Specifies the values to be consumed by consecutive calls toDataOutput.writeUTF(String).with(ByteBuffer[] values) Specifies the values to be consumed by consecutive calls toDataOutput.write(byte[], int, int).
-
Constructor Details
-
Builder
public Builder()Creates a builder of a data output.
-
-
Method Details
-
with
Specifies the values to be consumed by consecutive calls toDataOutput.writeUTF(String).- Parameters:
values- the consecutive values to be written- Returns:
- a reference to this builder
-
with
Specifies the values to be consumed by consecutive calls toDataOutput.writeChar(int).- Parameters:
values- the consecutive values to be written- Returns:
- a reference to this builder
-
with
Specifies the values to be consumed by consecutive calls toDataOutput.write(byte[], int, int).- Parameters:
values- the consecutive values to be written- Returns:
- a reference to this builder
-
with
Specifies the values to be consumed by consecutive calls toDataOutput.writeBoolean(boolean).- Parameters:
values- the consecutive values to be written- Returns:
- a reference to this builder
-
with
Specifies the values to be consumed by consecutive calls toDataOutput.write(byte[]).- Parameters:
values- the consecutive values to be written- Returns:
- a reference to this builder
-
with
Specifies the values to be consumed by consecutive calls toDataOutput.writeShort(int).- Parameters:
values- the consecutive values to be written- Returns:
- a reference to this builder
-
with
Specifies the values to be consumed by consecutive calls toDataOutput.writeInt(int).- Parameters:
values- the consecutive values to be written- Returns:
- a reference to this builder
-
with
Specifies the values to be consumed by consecutive calls toDataOutput.writeLong(long).- Parameters:
values- the consecutive values to be written- Returns:
- a reference to this builder
-
with
Specifies the values to be consumed by consecutive calls toDataOutput.writeFloat(float).- Parameters:
values- the consecutive values to be written- Returns:
- a reference to this builder
-
with
Specifies the values to be consumed by consecutive calls toDataOutput.writeDouble(double).- Parameters:
values- the consecutive values to be written- Returns:
- a reference to this builder
-
build
-