Interface ObjectDataInput

    • Method Detail

      • readUTF

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

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

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

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

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

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

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

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

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

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

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

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

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

        @Nullable
        <T> T readObject​(java.lang.Class aClass)
                  throws java.io.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:
        java.io.IOException - if it reaches end of file before finish reading
      • getClassLoader

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

        java.nio.ByteOrder getByteOrder()
        Returns:
        ByteOrder BIG_ENDIAN or LITTLE_ENDIAN