Class SimpleDataInput.Builder

java.lang.Object
org.wildfly.clustering.marshalling.protostream.SimpleDataInput.Builder
Direct Known Subclasses:
SimpleObjectInput.Builder
Enclosing class:
SimpleDataInput

public static class SimpleDataInput.Builder extends Object
Builds a simple data input.
Author:
Paul Ferraro
  • Constructor Details

    • Builder

      public Builder()
      Constructs a builder of a data input.
  • Method Details

    • with

      public SimpleDataInput.Builder with(String... values)
      Specifies the values to be returned via consecutive calls to DataInput.readUTF().
      Parameters:
      values - the consecutive values to be read
      Returns:
      a reference to this builder
    • with

      public SimpleDataInput.Builder with(ByteBuffer... values)
      Specifies the values to be returned via consecutive calls to DataInput.readFully(byte[]).
      Parameters:
      values - the consecutive values to be read
      Returns:
      a reference to this builder
    • with

      public SimpleDataInput.Builder with(char... values)
      Specifies the values to be returned via consecutive calls to DataInput.readChar().
      Parameters:
      values - the consecutive values to be read
      Returns:
      a reference to this builder
    • with

      public SimpleDataInput.Builder with(boolean... values)
      Specifies the values to be returned via consecutive calls to DataInput.readBoolean().
      Parameters:
      values - the consecutive values to be read
      Returns:
      a reference to this builder
    • with

      public SimpleDataInput.Builder with(byte... values)
      Specifies the values to be returned via consecutive calls to DataInput.readByte() or DataInput.readUnsignedByte().
      Parameters:
      values - the consecutive values to be read
      Returns:
      a reference to this builder
    • with

      public SimpleDataInput.Builder with(short... values)
      Specifies the values to be returned via consecutive calls to DataInput.readShort().
      Parameters:
      values - the consecutive values to be read
      Returns:
      a reference to this builder
    • with

      public SimpleDataInput.Builder with(int... values)
      Specifies the values to be returned via consecutive calls to DataInput.readInt().
      Parameters:
      values - the consecutive values to be read
      Returns:
      a reference to this builder
    • with

      public SimpleDataInput.Builder with(long... values)
      Specifies the values to be returned via consecutive calls to DataInput.readLong().
      Parameters:
      values - the consecutive values to be read
      Returns:
      a reference to this builder
    • with

      public SimpleDataInput.Builder with(float... values)
      Specifies the values to be returned via consecutive calls to DataInput.readFloat().
      Parameters:
      values - the consecutive values to be read
      Returns:
      a reference to this builder
    • with

      public SimpleDataInput.Builder with(double... values)
      Specifies the values to be returned via consecutive calls to DataInput.readDouble().
      Parameters:
      values - the consecutive values to be read
      Returns:
      a reference to this builder
    • build

      public DataInput build()
      Builds a simple data input.
      Returns:
      a simple data input