Interface ObjectDataInput

All Superinterfaces:
DataInput, VersionAware, WanProtocolVersionAware

public interface ObjectDataInput
extends DataInput, VersionAware, WanProtocolVersionAware
Provides serialization methods for arrays of primitive types.
  • Method Details

    • readByteArray

      byte[] readByteArray() throws IOException
      Returns:
      the byte array read
      Throws:
      IOException - if it reaches end of file before finish reading
    • readBooleanArray

      boolean[] readBooleanArray() throws IOException
      Returns:
      the boolean array read
      Throws:
      IOException - if it reaches end of file before finish reading
    • readCharArray

      char[] readCharArray() throws IOException
      Returns:
      the char array read
      Throws:
      IOException - if it reaches end of file before finish reading
    • readIntArray

      int[] readIntArray() throws IOException
      Returns:
      int array read
      Throws:
      IOException - if it reaches end of file before finish reading
    • readLongArray

      long[] readLongArray() throws IOException
      Returns:
      long array read
      Throws:
      IOException - if it reaches end of file before finish reading
    • readDoubleArray

      double[] readDoubleArray() throws IOException
      Returns:
      double array read
      Throws:
      IOException - if it reaches end of file before finish reading
    • readFloatArray

      float[] readFloatArray() throws IOException
      Returns:
      float array read
      Throws:
      IOException - if it reaches end of file before finish reading
    • readShortArray

      short[] readShortArray() throws IOException
      Returns:
      short array read
      Throws:
      IOException - if it reaches end of file before finish reading
    • readUTFArray

      String[] readUTFArray() throws IOException
      Returns:
      String array read
      Throws:
      IOException - if it reaches end of file before finish reading
    • readObject

      <T> T readObject() throws IOException
      Type Parameters:
      T - type of the object to be read
      Returns:
      object array read
      Throws:
      IOException - if it reaches end of file before finish reading
    • readObject

      <T> T readObject​(Class aClass) throws IOException
      Type Parameters:
      T - type of the object to be read
      Parameters:
      aClass - the type of the class to use when reading
      Returns:
      object array read
      Throws:
      IOException - if it reaches end of file before finish reading
    • getClassLoader

      ClassLoader getClassLoader()
      Returns class loader that internally used for objects.
      Returns:
      classLoader
    • getByteOrder

      ByteOrder getByteOrder()
      Returns:
      ByteOrder BIG_ENDIAN or LITTLE_ENDIAN