Package org.apache.juneau.utils
Class ManifestFile
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,Object>
org.apache.juneau.collections.JsonMap
org.apache.juneau.utils.ManifestFile
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Object>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
-
Constructor Summary
ConstructorDescriptionManifestFile
(File f) Create an instance of this class from a manifest file on the file system.Create an instance of this class loaded from the contents of an input stream.Create an instance of this class loaded from the contents of a reader.ManifestFile
(Class<?> c) Finds and loads the manifest file of the jar file that the specified class is contained within.Create an instance of this class from aManifest
object. -
Method Summary
Methods inherited from class org.apache.juneau.collections.JsonMap
append, append, appendFirst, appendIf, appendIf, appendIfAbsent, appendIfAbsentIf, asJson, asReadableString, asString, asString, cast, cast, containsKey, containsKeyNotEmpty, containsOuterKey, create, deleteAt, entrySet, exclude, filtered, filtered, filteredMap, filteredMap, find, find, findBoolean, findInt, findKeyIgnoreCase, findList, findLong, findMap, findString, get, get, get, getAt, getAt, getBeanSession, getBoolean, getBoolean, getClassMeta, getFirstKey, getInt, getInt, getList, getList, getList, getList, getLong, getLong, getMap, getMap, getMap, getMap, getString, getString, getStringArray, getStringArray, getSwapped, getWithDefault, getWithDefault, getWithDefault, include, inner, isUnmodifiable, keepAll, keySet, modifiable, of, of, ofJson, ofJson, ofText, ofText, postAt, put, putAt, putJson, removeAll, removeAll, removeBoolean, removeBoolean, removeInt, removeInt, removeString, removeString, removeWithDefault, session, setBeanSession, unmodifiable, writeTo
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, forEach, getOrDefault, removeEldestEntry, replaceAll, values
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from class java.util.AbstractMap
equals, hashCode
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Constructor Details
-
ManifestFile
Create an instance of this class from a manifest file on the file system.- Parameters:
f
- The manifest file.- Throws:
IOException
- If a problem occurred while trying to read the manifest file.
-
ManifestFile
Create an instance of this class from aManifest
object.- Parameters:
f
- The manifest to read from.
-
ManifestFile
Finds and loads the manifest file of the jar file that the specified class is contained within.- Parameters:
c
- The class to get the manifest file of.- Throws:
IOException
- If a problem occurred while trying to read the manifest file.
-
ManifestFile
Create an instance of this class loaded from the contents of a reader.Note that the input must end in a newline to pick up the last line!
- Parameters:
r
- The manifest file contents.- Throws:
IOException
- If a problem occurred while trying to read the manifest file.
-
ManifestFile
Create an instance of this class loaded from the contents of an input stream.Note that the input must end in a newline to pick up the last line!
- Parameters:
is
- The manifest file contents.- Throws:
IOException
- If a problem occurred while trying to read the manifest file.
-
-
Method Details