Interface IObjectReader

    • Method Detail

      • readPrimitiveArrayContent

        Object readPrimitiveArrayContent​(PrimitiveArrayImpl array,
                                         int offset,
                                         int length)
                                  throws IOException,
                                         SnapshotException
        Get detailed information about a primitive array
        Parameters:
        array - the array
        offset - where in the array to start
        length - how much to read
        Returns:
        a byte[], short[], int[], long[], boolean[], char[], float[], double[]
        Throws:
        SnapshotException - some other problem such as where the object is incompatible with the snapshot
        IOException - an IO problem or unexpected data in the dump
      • readObjectArrayContent

        long[] readObjectArrayContent​(ObjectArrayImpl array,
                                      int offset,
                                      int length)
                               throws IOException,
                                      SnapshotException
        Get detailed information about a object array
        Parameters:
        array - the array
        offset - where in the array to start
        length - how much to read
        Returns:
        an array of object addresses, with 0 for nulls
        Throws:
        SnapshotException - some other problem such as where the object is incompatible with the snapshot
        IOException - an IO problem or unexpected data in the dump
      • getAddon

        <A> A getAddon​(Class<A> addon)
                throws SnapshotException
        Get additional information about the snapshot
        Type Parameters:
        A - used to set the return type
        Parameters:
        addon - type of the additional information
        Returns:
        the additional information or null if none available
        Throws:
        SnapshotException - an IO problem or unexpected data in the dump
      • close

        void close()
            throws IOException
        tidy up when snapshot no longer required
        Throws:
        IOException - should not normally occur