Interface ObjectDataInput

All Superinterfaces:
DataInput, VersionAware, WanProtocolVersionAware

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

    • readUTF

      @Deprecated @Nullable String readUTF() throws IOException
      Deprecated.
      for the sake of better naming. Use readString() instead
      Specified by:
      readUTF in interface DataInput
      Throws:
      IOException
    • readString

      @Nullable String readString() throws IOException
      Returns:
      the string read
      Throws:
      IOException - if it reaches end of file before finish reading
    • readByteArray

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

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

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

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

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

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

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

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

      @Nullable @Deprecated String[] readUTFArray() throws IOException
      Deprecated.
      for the sake of better naming. Use readStringArray() instead
      Returns:
      String array read
      Throws:
      IOException - if it reaches end of file before finish reading
    • readStringArray

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

      @Nullable <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

      @Nullable <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