Class PEParser


  • public class PEParser
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PEParser()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.boris.pecoff4j.io.DataEntry findNextEntry​(org.boris.pecoff4j.PE pe, int pos)  
      static org.boris.pecoff4j.PE parse​(java.io.File file)  
      static org.boris.pecoff4j.PE parse​(java.io.InputStream is)  
      static org.boris.pecoff4j.PE parse​(java.lang.String filename)  
      static org.boris.pecoff4j.PE read​(org.boris.pecoff4j.io.IDataReader dr)  
      static org.boris.pecoff4j.PE read​(org.boris.pecoff4j.io.IDataReader dr, java.io.File file)  
      static org.boris.pecoff4j.AttributeCertificateTable readAttributeCertificateTable​(byte[] b)  
      static org.boris.pecoff4j.AttributeCertificateTable readAttributeCertificateTable​(byte[] b, org.boris.pecoff4j.io.IDataReader dr)  
      static org.boris.pecoff4j.COFFHeader readCOFF​(org.boris.pecoff4j.io.IDataReader dr)  
      static org.boris.pecoff4j.DebugDirectory readDebugDirectory​(byte[] b)  
      static org.boris.pecoff4j.DebugDirectory readDebugDirectory​(byte[] b, org.boris.pecoff4j.io.IDataReader dr)  
      static org.boris.pecoff4j.DOSHeader readDos​(org.boris.pecoff4j.io.IDataReader dr)  
      static org.boris.pecoff4j.ExportDirectory readExportDirectory​(byte[] b)  
      static org.boris.pecoff4j.ImageDataDirectory readImageDD​(org.boris.pecoff4j.io.IDataReader dr)  
      static org.boris.pecoff4j.ImportDirectory readImportDirectory​(byte[] b, int baseAddress)  
      static org.boris.pecoff4j.ImportDirectoryEntry readImportDirectoryEntry​(org.boris.pecoff4j.io.IDataReader dr)  
      static org.boris.pecoff4j.ImportDirectoryTable readImportDirectoryTable​(org.boris.pecoff4j.io.IDataReader dr, int baseAddress)  
      static org.boris.pecoff4j.ImportEntry readImportEntry​(org.boris.pecoff4j.io.IDataReader dr)  
      static org.boris.pecoff4j.LoadConfigDirectory readLoadConfigDirectory​(org.boris.pecoff4j.PE pe, byte[] b)  
      static org.boris.pecoff4j.OptionalHeader readOptional​(org.boris.pecoff4j.io.IDataReader dr)  
      static org.boris.pecoff4j.SectionHeader readSectionHeader​(org.boris.pecoff4j.io.IDataReader dr)  
      static org.boris.pecoff4j.SectionTable readSectionHeaders​(org.boris.pecoff4j.PE pe, org.boris.pecoff4j.io.IDataReader dr)  
      static org.boris.pecoff4j.PESignature readSignature​(org.boris.pecoff4j.io.IDataReader dr)  
      static org.boris.pecoff4j.DOSStub readStub​(org.boris.pecoff4j.DOSHeader header, org.boris.pecoff4j.io.IDataReader dr)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PEParser

        public PEParser()
    • Method Detail

      • parse

        public static org.boris.pecoff4j.PE parse​(java.io.InputStream is)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parse

        public static org.boris.pecoff4j.PE parse​(java.lang.String filename)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parse

        public static org.boris.pecoff4j.PE parse​(java.io.File file)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public static org.boris.pecoff4j.PE read​(org.boris.pecoff4j.io.IDataReader dr)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public static org.boris.pecoff4j.PE read​(org.boris.pecoff4j.io.IDataReader dr,
                                                 java.io.File file)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readDos

        public static org.boris.pecoff4j.DOSHeader readDos​(org.boris.pecoff4j.io.IDataReader dr)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • readStub

        public static org.boris.pecoff4j.DOSStub readStub​(org.boris.pecoff4j.DOSHeader header,
                                                          org.boris.pecoff4j.io.IDataReader dr)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • readSignature

        public static org.boris.pecoff4j.PESignature readSignature​(org.boris.pecoff4j.io.IDataReader dr)
                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readCOFF

        public static org.boris.pecoff4j.COFFHeader readCOFF​(org.boris.pecoff4j.io.IDataReader dr)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readOptional

        public static org.boris.pecoff4j.OptionalHeader readOptional​(org.boris.pecoff4j.io.IDataReader dr)
                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readImageDD

        public static org.boris.pecoff4j.ImageDataDirectory readImageDD​(org.boris.pecoff4j.io.IDataReader dr)
                                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • readSectionHeaders

        public static org.boris.pecoff4j.SectionTable readSectionHeaders​(org.boris.pecoff4j.PE pe,
                                                                         org.boris.pecoff4j.io.IDataReader dr)
                                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • readSectionHeader

        public static org.boris.pecoff4j.SectionHeader readSectionHeader​(org.boris.pecoff4j.io.IDataReader dr)
                                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • findNextEntry

        public static org.boris.pecoff4j.io.DataEntry findNextEntry​(org.boris.pecoff4j.PE pe,
                                                                    int pos)
      • readImportDirectory

        public static org.boris.pecoff4j.ImportDirectory readImportDirectory​(byte[] b,
                                                                             int baseAddress)
                                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readImportDirectoryEntry

        public static org.boris.pecoff4j.ImportDirectoryEntry readImportDirectoryEntry​(org.boris.pecoff4j.io.IDataReader dr)
                                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • readImportDirectoryTable

        public static org.boris.pecoff4j.ImportDirectoryTable readImportDirectoryTable​(org.boris.pecoff4j.io.IDataReader dr,
                                                                                       int baseAddress)
                                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • readImportEntry

        public static org.boris.pecoff4j.ImportEntry readImportEntry​(org.boris.pecoff4j.io.IDataReader dr)
                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readExportDirectory

        public static org.boris.pecoff4j.ExportDirectory readExportDirectory​(byte[] b)
                                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readLoadConfigDirectory

        public static org.boris.pecoff4j.LoadConfigDirectory readLoadConfigDirectory​(org.boris.pecoff4j.PE pe,
                                                                                     byte[] b)
                                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readDebugDirectory

        public static org.boris.pecoff4j.DebugDirectory readDebugDirectory​(byte[] b)
                                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • readDebugDirectory

        public static org.boris.pecoff4j.DebugDirectory readDebugDirectory​(byte[] b,
                                                                           org.boris.pecoff4j.io.IDataReader dr)
                                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • readAttributeCertificateTable

        public static org.boris.pecoff4j.AttributeCertificateTable readAttributeCertificateTable​(byte[] b)
                                                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readAttributeCertificateTable

        public static org.boris.pecoff4j.AttributeCertificateTable readAttributeCertificateTable​(byte[] b,
                                                                                                 org.boris.pecoff4j.io.IDataReader dr)
                                                                                          throws java.io.IOException
        Throws:
        java.io.IOException