| 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.util.jar.Manifest
public class Manifest
Manifest 类用于维护 Manifest 条目名称及其相关的 Attributes。既有主 Manifest 的 Attributes,也有每个条目的 Attributes。有关 Manifest 格式的信息,请参阅 Manifest 格式规范。
Attributes| 构造方法摘要 | |
|---|---|
Manifest()
构造新的空 Manifest。  | 
|
Manifest(InputStream is)
从指定的输入流构造新的 Manifest。  | 
|
Manifest(Manifest man)
构造新的 Manifest,它是指定 Manifest 的副本。  | 
|
| 方法摘要 | |
|---|---|
 void | 
clear()
清除此 Manifest 中的主 Attributes 和条目。  | 
 Object | 
clone()
返回 Manifest 的浅表复制。  | 
 boolean | 
equals(Object o)
如果指定的 Object 也是一个 Manifest,并且具有相同的主 Attributes 和条目,则返回 true。  | 
 Attributes | 
getAttributes(String name)
返回指定条目名称的 Attributes。  | 
 Map<String,Attributes> | 
getEntries()
返回此 Manifest 中所包含条目的 Map。  | 
 Attributes | 
getMainAttributes()
返回 Manifest 的主 Attributes。  | 
 int | 
hashCode()
返回 Manifest 的哈希码。  | 
 void | 
read(InputStream is)
从指定的 InputStream 读取 Manifest。  | 
 void | 
write(OutputStream out)
将 Manifest 写入指定的 OutputStream。  | 
| 从类 java.lang.Object 继承的方法 | 
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public Manifest()
public Manifest(InputStream is)
         throws IOException
is - 包含清单数据的输入流
IOException - 如果发生 I/O 错误public Manifest(Manifest man)
man - 要复制的 Manifest| 方法详细信息 | 
|---|
public Attributes getMainAttributes()
public Map<String,Attributes> getEntries()
public Attributes getAttributes(String name)
            return (Attributes)getEntries().get(name)
 
name - 条目名称。
public void clear()
public void write(OutputStream out)
           throws IOException
out - 输出流。
IOException - 如果发生 I/O 错误。getMainAttributes()
public void read(InputStream is)
          throws IOException
is - 输入流。
IOException - 如果发生 I/O 错误public boolean equals(Object o)
Object 中的 equalso - 要进行比较的对象
Object.hashCode(), 
Hashtablepublic int hashCode()
Object 中的 hashCodeObject.equals(java.lang.Object), 
Hashtablepublic Object clone()
     public Object clone() { return new Manifest(this); }
 
Object 中的 cloneCloneable
  | 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。