Package ghidra.app.util.bin.format.ne

# Class NewExecutable

java.lang.Object
ghidra.app.util.bin.format.ne.NewExecutable

public class NewExecutable extends Object
A class to manage loading New Executables (NE).

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NewExecutable(ByteProvider bp, SegmentedAddress baseAddr)`
  Constructs a new instance of an new executable.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `BinaryReader`
  `getBinaryReader()`
  Returns the underlying binary reader.
  `DOSHeader`
  `getDOSHeader()`
  Returns the DOS header from the new executable.
  `WindowsHeader`
  `getWindowsHeader()`
  Returns the Windows header from the new executable.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### NewExecutable

    public NewExecutable(ByteProvider bp, SegmentedAddress baseAddr) throws IOException
    Constructs a new instance of an new executable.
    Parameters:
      `bp` - the byte provider
      `baseAddr` - the image base of the executable
    Throws:
      `IOException` - if an I/O error occurs.

- ## Method Details

  - ### getBinaryReader

    public BinaryReader getBinaryReader()
    Returns the underlying binary reader.
    Returns:
      the underlying binary reader

  - ### getDOSHeader

    public DOSHeader getDOSHeader()
    Returns the DOS header from the new executable.
    Returns:
      the DOS header from the new executable

  - ### getWindowsHeader

    public WindowsHeader getWindowsHeader()
    Returns the Windows header from the new executable.
    Returns:
      the Windows header from the new executable