Package org.apache.ivy.osgi.core
Class ManifestParser
- java.lang.Object
-
- org.apache.ivy.osgi.core.ManifestParser
-
public class ManifestParser extends java.lang.ObjectProvides an OSGi manifest parser.
-
-
Constructor Summary
Constructors Constructor Description ManifestParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringformatLines(java.lang.String manifest)Ensure that the lines are not longer than 72 characters, so it can be parsed by theManifestclassstatic BundleInfoparseJarManifest(java.io.InputStream jarStream)static BundleInfoparseManifest(java.io.File manifestFile)static BundleInfoparseManifest(java.io.InputStream manifestStream)static BundleInfoparseManifest(java.lang.String manifest)static BundleInfoparseManifest(java.util.jar.Manifest manifest)
-
-
-
Method Detail
-
parseJarManifest
public static BundleInfo parseJarManifest(java.io.InputStream jarStream) throws java.io.IOException, java.text.ParseException
- Throws:
java.io.IOExceptionjava.text.ParseException
-
parseManifest
public static BundleInfo parseManifest(java.io.File manifestFile) throws java.io.IOException, java.text.ParseException
- Throws:
java.io.IOExceptionjava.text.ParseException
-
parseManifest
public static BundleInfo parseManifest(java.lang.String manifest) throws java.io.IOException, java.text.ParseException
- Throws:
java.io.IOExceptionjava.text.ParseException
-
parseManifest
public static BundleInfo parseManifest(java.io.InputStream manifestStream) throws java.io.IOException, java.text.ParseException
- Throws:
java.io.IOExceptionjava.text.ParseException
-
parseManifest
public static BundleInfo parseManifest(java.util.jar.Manifest manifest) throws java.text.ParseException
- Throws:
java.text.ParseException
-
formatLines
public static java.lang.String formatLines(java.lang.String manifest)
Ensure that the lines are not longer than 72 characters, so it can be parsed by theManifestclass- Parameters:
manifest- ditto- Returns:
- String
-
-