IT. Expert System.

Android Reference

Manifest


java.util.jar

Class Manifest

  • All Implemented Interfaces:
    Cloneable


    public class Manifest
    extends Object
    implements Cloneable
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
    • Constructor Detail

      • Manifest

        public Manifest()
        Creates a new Manifest instance.
      • Manifest

        public Manifest(InputStream is)
                 throws IOException
        Creates a new Manifest instance using the attributes obtained from the input stream.
        Parameters:
        is - InputStream to parse for attributes.
        Throws:
        IOException - if an IO error occurs while creating this Manifest
      • Manifest

        public Manifest(Manifest man)
        Creates a new Manifest instance. The new instance will have the same attributes as those found in the parameter Manifest.
        Parameters:
        man - Manifest instance to obtain attributes from.
    • Method Detail

      • clear

        public void clear()
        Resets the both the main attributes as well as the entry attributes associated with this Manifest.
      • getAttributes

        public Attributes getAttributes(String name)
        Returns the Attributes associated with the parameter entry name.
        Parameters:
        name - the name of the entry to obtain Attributes from.
        Returns:
        the Attributes for the entry or null if the entry does not exist.
      • getEntries

        public Map<String,Attributes> getEntries()
        Returns a map containing the Attributes for each entry in the Manifest.
        Returns:
        the map of entry attributes.
      • getMainAttributes

        public Attributes getMainAttributes()
        Returns the main Attributes of the JarFile.
        Returns:
        main Attributes associated with the source JarFile.
      • clone

        public Object clone()
        Creates a copy of this Manifest. The returned Manifest will equal the Manifest from which it was cloned.
        Overrides:
        clone in class Object
        Returns:
        a copy of this instance.
      • write

        public void write(OutputStream os)
                   throws IOException
        Writes out the attribute information of the receiver to the specified OutputStream.
        Parameters:
        os - The OutputStream to write to.
        Throws:
        IOException - If an error occurs writing the Manifest.
      • read

        public void read(InputStream is)
                  throws IOException
        Merges name/attribute pairs read from the input stream is into this manifest.
        Parameters:
        is - The InputStream to read from.
        Throws:
        IOException - If an error occurs reading the manifest.
      • equals

        public boolean equals(Object o)
        Determines if the receiver is equal to the parameter object. Two Manifests are equal if they have identical main attributes as well as identical entry attributes.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to compare against.
        Returns:
        true if the manifests are equal, false otherwise
        See Also:
        Object.hashCode()


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1368 / . Delta: 0.01970 с