org.boris.pecoff4j.PE Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pecoff4j Show documentation
Show all versions of pecoff4j Show documentation
PE/COFF 4J is a java engineering library for portable executables, the format used by Windows.
The newest version!
/*******************************************************************************
* This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* Peter Smith
*******************************************************************************/
package org.boris.pecoff4j;
public class PE {
private DOSHeader dosHeader;
private DOSStub stub;
private PESignature signature;
private COFFHeader coffHeader;
private OptionalHeader optionalHeader;
private ImageData imageData;
private SectionTable sectionTable;
private boolean is64bit;
public DOSHeader getDosHeader() {
return dosHeader;
}
public DOSStub getStub() {
return stub;
}
public PESignature getSignature() {
return signature;
}
public COFFHeader getCoffHeader() {
return coffHeader;
}
public OptionalHeader getOptionalHeader() {
return optionalHeader;
}
public boolean is64()
{
return is64bit;
}
public SectionTable getSectionTable() {
return sectionTable;
}
public void setDosHeader(DOSHeader dosHeader) {
this.dosHeader = dosHeader;
}
public void setStub(DOSStub stub) {
this.stub = stub;
}
public void setSignature(PESignature signature) {
this.signature = signature;
}
public void setCoffHeader(COFFHeader coffHeader) {
this.coffHeader = coffHeader;
}
public void setOptionalHeader(OptionalHeader optionalHeader) {
this.optionalHeader = optionalHeader;
}
public void set64(boolean is64bit)
{
this.is64bit = is64bit;
}
public void setSectionTable(SectionTable sectionTable) {
this.sectionTable = sectionTable;
}
public ImageData getImageData() {
if (imageData == null)
imageData = new ImageData();
return imageData;
}
public void setImageData(ImageData imageData) {
this.imageData = imageData;
}
}