Interface ObjectDataOutput

All Superinterfaces:
DataOutput, VersionAware, WanProtocolVersionAware

public interface ObjectDataOutput
extends DataOutput, VersionAware, WanProtocolVersionAware
Provides serialization methods for arrays by extending DataOutput
  • Method Details

    • writeUTF

      @Deprecated void writeUTF​(@Nullable String string) throws IOException
      Deprecated.
      for the sake of better naming. Use writeString(String) instead
      Specified by:
      writeUTF in interface DataOutput
      Throws:
      IOException
    • writeString

      void writeString​(@Nullable String string) throws IOException
      Parameters:
      string - string to be written
      Throws:
      IOException - in case of any exceptional case
    • writeByteArray

      void writeByteArray​(@Nullable byte[] bytes) throws IOException
      Parameters:
      bytes - byte array to be written
      Throws:
      IOException - in case of any exceptional case
    • writeBooleanArray

      void writeBooleanArray​(@Nullable boolean[] booleans) throws IOException
      Parameters:
      booleans - boolean array to be written
      Throws:
      IOException - in case of any exceptional case
    • writeCharArray

      void writeCharArray​(@Nullable char[] chars) throws IOException
      Parameters:
      chars - char array to be written
      Throws:
      IOException - in case of any exceptional case
    • writeIntArray

      void writeIntArray​(@Nullable int[] ints) throws IOException
      Parameters:
      ints - int array to be written
      Throws:
      IOException - in case of any exceptional case
    • writeLongArray

      void writeLongArray​(@Nullable long[] longs) throws IOException
      Parameters:
      longs - long array to be written
      Throws:
      IOException - in case of any exceptional case
    • writeDoubleArray

      void writeDoubleArray​(@Nullable double[] values) throws IOException
      Parameters:
      values - double array to be written
      Throws:
      IOException - in case of any exceptional case
    • writeFloatArray

      void writeFloatArray​(@Nullable float[] values) throws IOException
      Parameters:
      values - float array to be written
      Throws:
      IOException - in case of any exceptional case
    • writeShortArray

      void writeShortArray​(@Nullable short[] values) throws IOException
      Parameters:
      values - short array to be written
      Throws:
      IOException - in case of any exceptional case
    • writeUTFArray

      @Deprecated void writeUTFArray​(@Nullable String[] values) throws IOException
      Deprecated.
      for the sake of better naming. Use writeStringArray(String[]) instead
      Parameters:
      values - String array to be written
      Throws:
      IOException - in case of any exceptional case
    • writeStringArray

      void writeStringArray​(@Nullable String[] values) throws IOException
      Parameters:
      values - String array to be written
      Throws:
      IOException - in case of any exceptional case
    • writeObject

      void writeObject​(@Nullable Object object) throws IOException
      Parameters:
      object - object to be written
      Throws:
      IOException - in case of any exceptional case
    • toByteArray

      byte[] toByteArray()
      Returns:
      copy of internal byte array
    • toByteArray

      byte[] toByteArray​(int padding)
      Parameters:
      padding - padding bytes at the beginning of the byte-array.
      Returns:
      copy of internal byte array
    • getByteOrder

      ByteOrder getByteOrder()
      Returns:
      ByteOrder BIG_ENDIAN or LITTLE_ENDIAN