ppt4j 1.0
 
Loading...
Searching...
No Matches
ppt4j.util.ResourceUtils Class Reference

Static Public Member Functions

static InputStream readDatabase (String name)
 
static InputStream readVulTemplate ()
 
static InputStream readProperties ()
 
static InputStream readSerializedFile (int id, DatabaseType type, String className)
 

Member Function Documentation

◆ 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
namethe 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
idthe unique identifier for the file
typethe type of database being used
classNamethe 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: