◆ readDatabase()
static InputStream ppt4j.util.ResourceUtils.readDatabase |
( |
String | name | ) |
|
|
static |
Reads a specified database entry from a zip file located at the given path.
- Parameters
-
name | the name of the database entry to read |
- Returns
- an InputStream containing the data of the specified database entry
◆ readProperties()
static InputStream ppt4j.util.ResourceUtils.readProperties |
( |
| ) |
|
|
static |
This method reads the properties file located at the specified path and returns an InputStream object.
- Returns
- InputStream object containing the properties file data
◆ readSerializedFile()
static InputStream ppt4j.util.ResourceUtils.readSerializedFile |
( |
int | id, |
|
|
DatabaseType | type, |
|
|
String | className ) |
|
static |
Reads a serialized file from the specified location based on the given id, database type, and class name. Replaces dots and slashes in the class name with underscores to create the expected file path. Reads the serialized file from the expected file path using the readDatabase method.
- Parameters
-
id | the unique identifier for the file |
type | the type of database being used |
className | the name of the class containing the serialized data |
- Returns
- an InputStream of the serialized file
◆ readVulTemplate()
static InputStream ppt4j.util.ResourceUtils.readVulTemplate |
( |
| ) |
|
|
static |
Reads the vulnerability template file and returns it as an InputStream.
- Returns
- InputStream of the vulnerability template file
The documentation for this class was generated from the following file: