public class ManifestFile extends ObjectMap
Copies the contents of a Manifest
into an ObjectMap
so that the various convenience methods on that
class can be used to retrieve values.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ManifestFile(Class<?> c)
Finds and loads the manifest file of the jar file that the specified class is contained within.
|
ManifestFile(File f)
Create an instance of this class from a manifest file on the file system.
|
ManifestFile(Manifest f)
Create an instance of this class from a
Manifest object. |
append, appendAll, cast, cast, containsKey, containsOuterKey, deleteAt, entrySet, exclude, find, find, findBoolean, findInt, findKeyIgnoreCase, findList, findLong, findMap, findObjectList, findObjectMap, findString, get, get, get, getAt, getAt, getBeanSession, getBoolean, getBoolean, getClassMeta, getFirstKey, getInt, getInt, getList, getList, getList, getLong, getLong, getMap, getMap, getMap, getObjectList, getObjectList, getObjectMap, getObjectMap, getString, getString, getStringArray, getStringArray, getSwapped, getWithDefault, getWithDefault, getWithDefault, include, keySet, postAt, putAt, putIfEmpty, putIfNull, putJson, removeAll, removeAll, removeWithDefault, serializeTo, setBeanSession, setInner, toString, toString
clear, containsValue, forEach, getOrDefault, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode
public ManifestFile(File f) throws IOException
f
- The manifest file.IOException
- If a problem occurred while trying to read the manifest file.public ManifestFile(Manifest f)
Manifest
object.f
- The manifest to read from.public ManifestFile(Class<?> c) throws IOException
c
- The class to get the manifest file of.IOException
- If a problem occurred while trying to read the manifest file.Copyright © 2018 Apache. All rights reserved.