Class PEReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class PEReader
    extends java.lang.Object
    implements java.io.Closeable
    • Constructor Detail

      • PEReader

        public PEReader​(java.io.RandomAccessFile file)
                 throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • getResourcesBase

        public long getResourcesBase()
      • rvaToOffset

        public long rvaToOffset​(long rva)
      • visitResourceEntries

        public void visitResourceEntries​(ResourceEntryVisitor visitor)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getProductVersion

        public PEVersion getProductVersion()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getFileVersion

        public PEVersion getFileVersion()
                                 throws java.io.IOException
        Throws:
        java.io.IOException