|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.util.jar.Manifest
public class Manifest
Manifest 클래스는, Manifest 의 엔트리명과 거기에 관련한 Attributes 를 관리하기 위해서 사용합니다. 엔트리마다의 Attributes 외에, 메인이 되는 Manifest Attributes 가 있습니다. Manifest 형식에 대해서는,「Manifest의 스펙」을 참조해 주세요.
Attributes
생성자 의 개요 | |
---|---|
Manifest ()
새로운 빈 상태(empty)의 Manifest 를 작성합니다. |
|
Manifest (InputStream is)
지정된 입력 스트림로부터 새로운 Manifest 를 작성합니다. |
|
Manifest (Manifest man)
지정된 Manifest 의 카피인 새로운 Manifest 를 작성합니다. |
메소드의 개요 | |
---|---|
void |
clear ()
이 Manifest 의 메인이 되는 Attributes 와 엔트리를 클리어 합니다. |
Object |
clone ()
이 Manifest 의 shallow 복사를 돌려줍니다. |
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)
지정된 OutputStream 에 Manifest 를 기입합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
finalize , getClass , notify , notifyAll , toString , wait , wait , wait |
생성자 의 상세 |
---|
public Manifest()
public Manifest(InputStream is) throws IOException
is
- Manifest 데이터를 포함한 입력 스트림
IOException
- 입출력 에러가 발생했을 경우public Manifest(Manifest man)
man
- 카피 대상의 Manifest메소드의 상세 |
---|
public Attributes getMainAttributes()
public Map <String ,Attributes > getEntries()
null
키를 허가합니다만, null 키를 가지는 엔트리가 read(java.io.InputStream)
에 의해 작성되거나write(java.io.OutputStream)
에 의해 기입해지거나 할 것은 없습니다.
public Attributes getAttributes(String name)
return (Attributes) getEntries(). get(name)
null
는 유효한 name
입니다만, jar 파일로부터 취득된 Manifest
로 getAttributes(null)
가 불려 가면(자),null
가 돌려주어집니다. jar 파일 자체는 null
지정된 속성을 허가합니다만,Manifest
에 대해서 getEntries()
를 호출해, 그 결과에 대해서, null 키와 임의의 값을 사용해 put
를 호출하는 것은 가능합니다. 이후 getAttributes(null)
를 호출해도,put
치가 돌려주어질 뿐입니다.
이 메소드가 Manifest의 메인 속성을 돌려주지 않는 것에 유의해 주세요. getMainAttributes()
를 참조해 주세요.
name
- 엔트리명
public void clear()
public void write(OutputStream out) throws IOException
out
- 출력 스트림
IOException
- 입출력 에러가 발생했을 경우getMainAttributes()
public void read(InputStream is) throws IOException
is
- 입력 스트림
IOException
- 입출력 에러가 발생했을 경우public boolean equals(Object o)
Object
내의 equals
o
- 비교 대상의 객체
Object.hashCode()
,
Hashtable
public int hashCode()
Object
내의 hashCode
Object.equals(java.lang.Object)
,
Hashtable
public Object clone()
public Object clone() { return new Manifest(this); }
Object
내의 clone
Cloneable
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.