Package org.apache.ivy.osgi.core
Class ManifestParser
java.lang.Object
org.apache.ivy.osgi.core.ManifestParser
Provides an OSGi manifest parser.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatLines(String manifest) Ensure that the lines are not longer than 72 characters, so it can be parsed by theManifestclassprivate static voidparseCapability(BundleInfo bundleInfo, Attributes mainAttributes, String headerName, String type) static BundleInfoparseJarManifest(InputStream jarStream) static BundleInfoparseManifest(File manifestFile) static BundleInfoparseManifest(InputStream manifestStream) static BundleInfoparseManifest(String manifest) static BundleInfoparseManifest(Manifest manifest) private static voidparseRequirement(BundleInfo bundleInfo, Attributes mainAttributes, String headerName, String type, String versionAttr) private static Versionprivate static VersionRange
-
Field Details
-
EXPORT_PACKAGE
- See Also:
-
IMPORT_PACKAGE
- See Also:
-
EXPORT_SERVICE
- See Also:
-
IMPORT_SERVICE
- See Also:
-
REQUIRE_BUNDLE
- See Also:
-
BUNDLE_VERSION
- See Also:
-
BUNDLE_NAME
- See Also:
-
BUNDLE_DESCRIPTION
- See Also:
-
BUNDLE_SYMBOLIC_NAME
- See Also:
-
BUNDLE_MANIFEST_VERSION
- See Also:
-
BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT
- See Also:
-
BUNDLE_CLASSPATH
- See Also:
-
ECLIPSE_SOURCE_BUNDLE
- See Also:
-
ATTR_RESOLUTION
- See Also:
-
ATTR_VERSION
- See Also:
-
ATTR_BUNDLE_VERSION
- See Also:
-
ATTR_USE
- See Also:
-
-
Constructor Details
-
ManifestParser
public ManifestParser()
-
-
Method Details
-
parseJarManifest
- Throws:
IOExceptionParseException
-
parseManifest
- Throws:
IOExceptionParseException
-
parseManifest
- Throws:
IOExceptionParseException
-
parseManifest
public static BundleInfo parseManifest(InputStream manifestStream) throws IOException, ParseException - Throws:
IOExceptionParseException
-
parseManifest
- Throws:
ParseException
-
parseRequirement
private static void parseRequirement(BundleInfo bundleInfo, Attributes mainAttributes, String headerName, String type, String versionAttr) throws ParseException - Throws:
ParseException
-
parseCapability
private static void parseCapability(BundleInfo bundleInfo, Attributes mainAttributes, String headerName, String type) throws ParseException - Throws:
ParseException
-
versionRangeOf
- Throws:
ParseException
-
versionOf
-
formatLines
Ensure that the lines are not longer than 72 characters, so it can be parsed by theManifestclass- Parameters:
manifest- ditto- Returns:
- String
-