Interface ObjectDataOutput

All Superinterfaces:
DataOutput, VersionAware, WanProtocolVersionAware

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

    • writeByteArray

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

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

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

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

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

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

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

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

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

      void writeObject​(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