Parsing
Parse package-url from a string
Parsing from string with parse(String)
supports 2 options. With pkg
scheme or scheme-less.
pkg
scheme
Preferred latest form of the specification.
PackageUrl purl = PackageUrl.parse("pkg:maven/junit/junit@4.12");
scheme-less
Backwards compatible parsing for pre-pkg
-scheme.
PackageUrl purl = PackageUrl.parse("maven:junit/junit@4.12");