jetbrains.buildServer.util.PEReader
Class PEReader

java.lang.Object
  extended by jetbrains.buildServer.util.PEReader.PEReader
All Implemented Interfaces:
java.io.Closeable

public class PEReader
extends java.lang.Object
implements java.io.Closeable


Constructor Summary
PEReader(java.io.RandomAccessFile file)
           
 
Method Summary
 void close()
           
 PEVersion getFileVersion()
           
 PEImageOptionalHeader getOptionalHeader()
           
 PEVersion getProductVersion()
           
 long getResourcesBase()
           
 long rvaToOffset(long rva)
           
 void visitResourceEntries(ResourceEntryVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.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

getOptionalHeader

public PEImageOptionalHeader getOptionalHeader()

getProductVersion

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

getFileVersion

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