Package org.spdx.maven.utils
Class SpdxSourceFileParser
java.lang.Object
org.spdx.maven.utils.SpdxSourceFileParser
Helper class with static methods to parse SPDX source files
- Author:
- Gary O'Neall
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseFileForSpdxLicenses
(File file) Parses a text file for matches to SPDX-License-Identifier:
-
Field Details
-
MAXIMUM_SOURCE_FILE_LENGTH
public static final long MAXIMUM_SOURCE_FILE_LENGTH- See Also:
-
SPDX_LICENSE_PATTERN
-
-
Constructor Details
-
SpdxSourceFileParser
public SpdxSourceFileParser()
-
-
Method Details
-
parseFileForSpdxLicenses
Parses a text file for matches to SPDX-License-Identifier:- Parameters:
file
- Text file to parse- Returns:
- list of all license expressions found following SPDX-License-Identifier:
- Throws:
SpdxSourceParserException
-
parseTextForSpdxLicenses
- Throws:
SpdxSourceParserException
-