This
class represents the manifest entry of a JAR file.
getMainAttributes( ) returns an
Attributes object that represents the manifest
attributes that apply to the entire JAR file. getAttributes(
) returns an Attributes object that
represents the manifest attributes specified for a single file in the
JAR file. getEntries( ) returns a
java.util.Map that maps the names of entries in
the JAR file to the Attributes objects associated
with those entries. getEnTRies( ) returns the
Map object used internally by the
Manifest. You can edit the contents of the
Manifest by adding, deleting, or editing entries
in the Map. read( ) reads
manifest entries from an input stream, merging them into the current
set of entries. write( ) writes the
Manifest out to the specified output stream.

public class Manifest implements Cloneable {
// Public Constructors
public Manifest( );
public Manifest(Manifest man);
public Manifest(java.io.InputStream is) throws java.io.IOException;
// Public Instance Methods
public void clear( );
public java.util.jar.Attributes getAttributes(String name);
public java.util.Map<String,java.util.jar.Attributes> getEntries( ); default:HashMap
public java.util.jar.Attributes getMainAttributes( );
public void read(java.io.InputStream is) throws java.io.IOException;
public void write(java.io.OutputStream out) throws java.io.IOException;
// Public Methods Overriding Object
public Object clone( );
public boolean equals(Object o);
public int hashCode( );
}
Passed To
java.net.URLClassLoader.definePackage( ),
JarOutputStream.JarOutputStream( )
Returned By
java.net.JarURLConnection.getManifest( ),
JarFile.getManifest( ),
JarInputStream.getManifest( )
 |