public class KARManifest extends java.util.jar.Manifest
Constructor and Description |
---|
KARManifest()
Constructor.
|
KARManifest(java.io.InputStream is)
Constructor.
|
KARManifest(java.util.jar.Manifest man)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntryAttribute(KAREntry entry,
java.lang.String name,
java.lang.String value)
add an entry specific attribute
|
void |
addEntryAttribute(java.lang.String entryName,
java.lang.String name,
java.lang.String value)
add an entry specific attribute
|
void |
addMainAttribute(java.lang.String name,
java.lang.String value)
add a main manifest attribute
|
java.lang.String |
getEntryAttribute(KAREntry entry,
java.lang.String name)
get a JarEntry specific attribute
|
java.lang.String |
getEntryAttribute(java.lang.String entryName,
java.lang.String name)
get a JarEntry specific attribute
|
java.lang.String |
getMainAttribute(java.lang.String name)
get a main manifest attribute
|
public KARManifest()
public KARManifest(java.io.InputStream is) throws java.io.IOException
is
- java.io.IOException
public KARManifest(java.util.jar.Manifest man)
man
- public void addMainAttribute(java.lang.String name, java.lang.String value)
name
- value
- public java.lang.String getMainAttribute(java.lang.String name)
name
- public void addEntryAttribute(KAREntry entry, java.lang.String name, java.lang.String value)
entry
- the JarEntry that you are adding an attribute forname
- the name of the attributevalue
- the value of the attributepublic void addEntryAttribute(java.lang.String entryName, java.lang.String name, java.lang.String value)
entryName
- the name of the JarEntry that you are adding an attribute forname
- the name of the attributevalue
- the value of the attributepublic java.lang.String getEntryAttribute(KAREntry entry, java.lang.String name)
entry
- the entry you're getting the attribute forname
- the name of the attributepublic java.lang.String getEntryAttribute(java.lang.String entryName, java.lang.String name)
entryName
- the name of the JarEntry you're getting the attribute forname
- the name of the attribute