|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.aries.util.manifest.ManifestProcessor
public class ManifestProcessor
This class contains utilities for parsing manifests. It provides methods to parse the manifest, read a manifest into a map and to split an manifest entry that follows the Import-Package syntax.
| Constructor Summary | |
|---|---|
ManifestProcessor()
|
|
| Method Summary | |
|---|---|
static Manifest |
mapToManifest(Map<String,String> attributes)
mapToManifest |
static Manifest |
obtainManifestFromAppDir(IDirectory appDir,
String manifestName)
Obtain a manifest from an IDirectory. |
static Manifest |
parseManifest(InputStream in)
This method parses the manifest using a custom manifest parsing routine. |
static Map<String,String> |
readManifestIntoMap(Manifest mf)
Reads a manifest's main attributes into a String->String map. |
static List<String> |
split(String value,
String delimiter)
Splits a delimiter separated string, tolerating presence of non separator commas within double quoted segments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManifestProcessor()
| Method Detail |
|---|
public static Map<String,String> readManifestIntoMap(Manifest mf)
Will always return a map, empty if the manifest had no attributes.
mf - The manifest to read.
public static Manifest mapToManifest(Map<String,String> attributes)
public static Manifest parseManifest(InputStream in)
throws IOException
in - the input stream to read the manifest from.
IOException
public static Manifest obtainManifestFromAppDir(IDirectory appDir,
String manifestName)
throws IOException
appDir - manifestName - the name of manifest
IOException
public static List<String> split(String value,
String delimiter)
value - the value to be splitdelimiter - the delimiter string such as ',' etc.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||