Package org.apache.ivy.osgi.core
Class ManifestParser
java.lang.Object
org.apache.ivy.osgi.core.ManifestParser
Provides an OSGi manifest parser.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatLines
(String manifest) Ensure that the lines are not longer than 72 characters, so it can be parsed by theManifest
classstatic BundleInfo
parseJarManifest
(InputStream jarStream) static BundleInfo
parseManifest
(File manifestFile) static BundleInfo
parseManifest
(InputStream manifestStream) static BundleInfo
parseManifest
(String manifest) static BundleInfo
parseManifest
(Manifest manifest)
-
Constructor Details
-
ManifestParser
public ManifestParser()
-
-
Method Details
-
parseJarManifest
- Throws:
IOException
ParseException
-
parseManifest
- Throws:
IOException
ParseException
-
parseManifest
- Throws:
IOException
ParseException
-
parseManifest
public static BundleInfo parseManifest(InputStream manifestStream) throws IOException, ParseException - Throws:
IOException
ParseException
-
parseManifest
- Throws:
ParseException
-
formatLines
Ensure that the lines are not longer than 72 characters, so it can be parsed by theManifest
class- Parameters:
manifest
- ditto- Returns:
- String
-