Class NativeSignaturePackageEntry
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.sig.NativeSignaturePackageEntry
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
.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionNativeSignaturePackageEntry
(File file, NativeSignaturePackageMetadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a signature to be written into the package.void
void
getFile()
Retrieve the signatures that should be added to the package.long
getSize()
Get the package file size in bytes.void
boolean
isActive()
boolean
boolean
Returns true if the package was created by a user, false if it is an official PNF Software package.void
toString()
-
Constructor Details
-
NativeSignaturePackageEntry
-
-
Method Details
-
getSize
public long getSize()Get the package file size in bytes. -
getStatus
-
setStatus
-
isActive
public boolean isActive() -
isLoadedInMemory
public boolean isLoadedInMemory()- Returns:
- true if the signatures of this package are loaded in memory, false otherwise
-
incrementOpenHandle
public void incrementOpenHandle() -
decrementOpenHandle
public void decrementOpenHandle() -
getFile
-
getMetadata
-
isUserCreated
public boolean isUserCreated()Returns true if the package was created by a user, false if it is an official PNF Software package. -
clearSignaturesToWrite
public void clearSignaturesToWrite() -
addSignatureToWrite
Add a signature to be written into the package.- Parameters:
sig
-
-
getSignatureToWrite
Retrieve the signatures that should be added to the package.- Returns:
- list of signatures
-
toString
-