Class PyPACoreMetadataParser
java.lang.Object
org.owasp.dependencycheck.utils.PyPACoreMetadataParser
A utility class to handle Python Packaging Authority (PyPA) core metadata files. It was created based on the
specification by PyPA for
version 2.2
- Author:
- Hans Aikema
-
Method Summary
Modifier and TypeMethodDescriptionstatic PropertiesgetProperties(BufferedReader utf8Reader) Loads all key/value pairs from PyPA metadata specifications¶.static PropertiesgetProperties(File file) Loads all key/value pairs from PyPA metadata specifications¶.
-
Method Details
-
getProperties
Loads all key/value pairs from PyPA metadata specifications¶.- Parameters:
file- The Wheel metadata of a Python package as a File- Returns:
- The metadata properties read from the file
- Throws:
AnalysisException- thrown if there is an analysis exception
-
getProperties
Loads all key/value pairs from PyPA metadata specifications¶.- Parameters:
utf8Reader- The Wheel metadata of a Python package as a BufferedReader- Returns:
- The metadata properties read from the utf8Reader
- Throws:
IOException- thrown if there is error reading the properties
-