public class ManifestFile extends OMap
Copies the contents of a Manifest
into an OMap
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(InputStream is)
Create an instance of this class loaded from the contents of an input stream.
|
ManifestFile(Manifest f)
Create an instance of this class from a
Manifest object. |
ManifestFile(Reader r)
Create an instance of this class loaded from the contents of a reader.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
Serialize this object into a JSON string using the
JsonSerializer.DEFAULT serializer. |
a, aa, aif, aif, aif, aife, aifn, aifne, append, appendAll, appendIf, appendIf, appendIf, appendIfEmpty, appendIfNotEmpty, appendIfNull, appendSkipEmpty, appendSkipFalse, appendSkipMinusOne, appendSkipNull, ase, asf, asmo, asn, asString, asString, cast, cast, containsKey, containsKeyNotEmpty, containsOuterKey, deleteAt, entrySet, exclude, find, find, findBoolean, findInt, findKeyIgnoreCase, findList, findLong, findMap, findString, get, get, get, getAt, getAt, getBeanSession, getBoolean, getBoolean, getClassMeta, getFirstKey, getInt, getInt, getList, getList, getList, getLong, getLong, getMap, getMap, getMap, getString, getString, getStringArray, getStringArray, getSwapped, getWithDefault, getWithDefault, getWithDefault, include, inner, isUnmodifiable, keepAll, keySet, modifiable, of, of, ofAll, ofJson, ofJson, ofText, ofText, postAt, putAt, putJson, removeAll, removeAll, removeBoolean, removeBoolean, removeInt, removeInt, removeString, removeString, removeWithDefault, session, unmodifiable, writeTo
findObjectList, findObjectMap, getList, getList, getMap, getMap, getObjectList, getObjectList, getObjectList, getObjectMap, getObjectMap, getObjectMap, parse, putIfEmpty, putIfNotExists, putIfNull, serializeTo, setBeanSession, setInner, 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.public ManifestFile(Reader r) throws IOException
Note that the input must end in a newline to pick up the last line!
r
- The manifest file contents.IOException
- If a problem occurred while trying to read the manifest file.public ManifestFile(InputStream is) throws IOException
Note that the input must end in a newline to pick up the last line!
is
- The manifest file contents.IOException
- If a problem occurred while trying to read the manifest file.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.