public class ManifestProcessor extends Object
| Constructor and Description |
|---|
ManifestProcessor() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 parseManifest(InputStream in) throws IOException
in - the input stream to read the manifest from.IOExceptionpublic static Manifest obtainManifestFromAppDir(IDirectory appDir, String manifestName) throws IOException
appDir - manifestName - the name of manifestIOExceptionpublic static List<String> split(String value, String delimiter)
value - the value to be splitdelimiter - the delimiter string such as ',' etc.Copyright © 2010 - 2020 Adobe. All Rights Reserved