Class BaseRelocationDataDirectory

    • Constructor Detail

      • BaseRelocationDataDirectory

        public BaseRelocationDataDirectory()
        DO NOT USE THIS CONSTRUCTOR, USE create*(GenericFactory ...) FACTORY METHODS INSTEAD.
    • Method Detail

      • parse

        public boolean parse()
                      throws java.io.IOException
        Description copied from class: DataDirectory
        Parses this data directory.
        Specified by:
        parse in class DataDirectory
        Returns:
        True if parsing completed successfully; otherwise, false.
        Throws:
        java.io.IOException - If there was an IO problem while parsing.
      • getBaseRelocations

        public BaseRelocation[] getBaseRelocations()
        Returns the array of base relocations defined in this base relocation data directory.
        Returns:
        the array of base relocations defined in this base relocation data directory
      • removeAllRelocations

        public void removeAllRelocations()
        Removes all base relocations from this base relocation directory.
      • createBaseRelocation

        public BaseRelocation createBaseRelocation​(int va)
        Create a new base relocation using the specified virtual address.
        Parameters:
        va - the virtual address of the new base relocation
        Returns:
        the new base relocation
      • addBaseRelocation

        public void addBaseRelocation​(BaseRelocation reloc)
        Adds the specified base relocation.
        Parameters:
        reloc - the new base relocation