public class

NativeSignaturePackageEntry

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.sig.NativeSignaturePackageEntry

Class Overview

Represents a signature package available through the NativeSignatureDBManager. The corresponding signatures are not necessarily loaded in memory (see isLoadedInMemory().

The entry also stores signatures intended to be written into the package, see getSignatureToWrite().

Notes: once loaded in memory, the signatures are not stored in this class, but in an internal storage of the NativeSignatureDBManager.

Summary

Nested Classes
enum NativeSignaturePackageEntry.PackageStatus  
Public Constructors
NativeSignaturePackageEntry(File file, NativeSignaturePackageMetadata metadata)
Public Methods
void addSignatureToWrite(INativeSignature sig)
Add a signature to be written into the package.
void clearSignaturesToWrite()
void decrementOpenHandle()
File getFile()
NativeSignaturePackageMetadata getMetadata()
List<INativeSignature> getSignatureToWrite()
Retrieve the signatures that should be added to the package.
long getSize()
Get the package file size in bytes.
NativeSignaturePackageEntry.PackageStatus getStatus()
void incrementOpenHandle()
boolean isActive()
boolean isLoadedInMemory()
boolean isUserCreated()
Returns true if the package was created by a user, false if it is an official PNF Software package.
void setStatus(NativeSignaturePackageEntry.PackageStatus status)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NativeSignaturePackageEntry (File file, NativeSignaturePackageMetadata metadata)

Public Methods

public void addSignatureToWrite (INativeSignature sig)

Add a signature to be written into the package.

public void clearSignaturesToWrite ()

public void decrementOpenHandle ()

public File getFile ()

public NativeSignaturePackageMetadata getMetadata ()

public List<INativeSignature> getSignatureToWrite ()

Retrieve the signatures that should be added to the package.

Returns
  • list of signatures

public long getSize ()

Get the package file size in bytes.

public void incrementOpenHandle ()

public boolean isActive ()

public boolean isLoadedInMemory ()

Returns
  • true if the signatures of this package are loaded in memory, false otherwise

public boolean isUserCreated ()

Returns true if the package was created by a user, false if it is an official PNF Software package.

public void setStatus (NativeSignaturePackageEntry.PackageStatus status)

public String toString ()