JavaTM 2 Platform
Standard Ed. 5.0

java.util.jar
Ŭ·¡½º Manifest

java.lang.Object 
  »óÀ§¸¦ È®Àå java.util.jar.Manifest
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Cloneable

public class Manifest
extends Object
implements Cloneable

Manifest Ŭ·¡½º´Â Manifest ¿£Æ®¸®¸í°ú °Å±â¿¡ °ü·ÃÇÑ Attributes¸¦ °ü¸®Çϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù. ¿£Æ®¸®¸¶´ÙÀÇ Attributes ¿Ü¿¡ ¸ÞÀÎÀÌ µÇ´Â Manifest Attributes°¡ ÀÖ½À´Ï´Ù. Manifest Çü½Ä¿¡ ´ëÇØ¼­´Â ¡¸MANIFEST ÀÇ »ç¾ç¡¹À» ÂüÁ¶ÇϽʽÿÀ.

µµÀÔµÈ ¹öÀü :
1.2
°ü·Ã Ç׸ñ:
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)
          ÁöÁ¤µÈ OutputStream¿¡ Manifest¸¦ Ãâ·ÂÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

Manifest

public Manifest()
»õ·Î¿î ºñ¾îÀÖ´Â Manifest¸¦ ÀÛ¼ºÇÕ´Ï´Ù.


Manifest

public Manifest(InputStream  is)
         throws IOException 
ÁöÁ¤µÈ ÀÔ·Â ½ºÆ®¸²·ÎºÎÅÍ »õ·Î¿î Manifest¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
is - MANIFEST µ¥ÀÌÅ͸¦ Æ÷ÇÔÇÑ ÀÔ·Â ½ºÆ®¸²
¿¹¿Ü:
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì

Manifest

public Manifest(Manifest  man)
ÁöÁ¤µÈ Manifest º¹»çÀÎ »õ·Î¿î Manifest¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
man - º¹Á¦ ´ë»óÀÇ Manifest
¸Þ¼­µåÀÇ »ó¼¼

getMainAttributes

public Attributes  getMainAttributes()
Manifest ¸ÞÀÎÀÌ µÇ´Â Attributes¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
Manifest ¸ÞÀÎÀÌ µÇ´Â Attributes

getEntries

public Map <String,
Attributes > getEntries()
ÀÌ Manifest¿¡ Æ÷ÇԵǰí ÀÖ´Â ¿£Æ®¸®ÀÇ Map¸¦ ¸®ÅÏÇÕ´Ï´Ù. °¢ ¿£Æ®¸®´Â String ¸í (Ű)°ú °ü·ÃÇÑ Attributes (°ª)·Î ³ªÅ¸³»Áý´Ï´Ù.

¹Ýȯ°ª:
Manifest¿¡ Æ÷ÇԵǾî ÀÖ´Â ¿£Æ®¸®ÀÇ Map

getAttributes

public Attributes  getAttributes(String  name)
ÁöÁ¤µÈ ¿£Æ®¸®¸íÀÇ Attributes¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ´ÙÀ½°ú °°ÀÌ Á¤Àǵ˴ϴÙ.

            return (Attributes) getEntries(). get(name)
 

ÆÄ¶ó¹ÌÅÍ:
name - ¿£Æ®¸®¸í
¹Ýȯ°ª:
ÁöÁ¤ÇÑ ¿£Æ®¸®¸íÀÇ Attributes

clear

public void clear()
ÀÌ Manifest ¸ÞÀÎÀÌ µÇ´Â Attributes¿Í ¿£Æ®¸®¸¦ Ŭ¸®¾î ÇÕ´Ï´Ù.


write

public void write(OutputStream  out)
           throws IOException 
ÁöÁ¤µÈ OutputStream¿¡ Manifest¸¦ Ãâ·ÂÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå¸¦ È£ÃâÇϱâ Àü¿¡ MainAttributes¿¡ ´ëÇØ Attributes.Name.MANIFEST_VERSION¸¦ ¼³Á¤ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
out - Ãâ·Â ½ºÆ®¸²
¿¹¿Ü:
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
°ü·Ã Ç׸ñ:
getMainAttributes()

read

public void read(InputStream  is)
          throws IOException 
ÁöÁ¤µÈ InputStream ·ÎºÎÅÍ Manifest¸¦ ÀоîµéÀÔ´Ï´Ù. ÀоÁö´Â ¿£Æ®¸®¸í ¹× ¼Ó¼ºÀº ÇöÀçÀÇ MANIFEST ¿£Æ®¸®¿¡ ¸ÓÁö µË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
is - ÀÔ·Â ½ºÆ®¸²
¿¹¿Ü:
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì

equals

public boolean equals(Object  o)
ÁöÁ¤µÈ Object°¡ Manifest À̱⵵ ÇØ, ±× ¸ÞÀÎÀÌ µÇ´Â Attributes ¹× ¿£Æ®¸®°¡ µ¿ÀÏÇÑ °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ equals
ÆÄ¶ó¹ÌÅÍ:
o - ºñ±³ ´ë»óÀÇ °´Ã¼
¹Ýȯ°ª:
ÁöÁ¤µÈ Object°¡ Manifest À̱⵵ ÇØ, ±× ¸ÞÀÎÀÌ µÇ´Â Attributes ¹× ¿£Æ®¸®°¡ µ¿ÀÏÇÑ °æ¿ì´Â true
°ü·Ã Ç׸ñ:
Object.hashCode(), Hashtable

hashCode

public int hashCode()
ÀÌ Manifest ÇØ½Ã Äڵ带 ¸®ÅÏÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ hashCode
¹Ýȯ°ª:
ÀÌ °´Ã¼ÀÇ ÇØ½Ã Äڵ尪
°ü·Ã Ç׸ñ:
Object.equals(java.lang.Object), Hashtable

clone

public Object  clone()
ÀÌ Manifest »þ·ÎÄÚÇǸ¦ ¸®ÅÏÇÕ´Ï´Ù. »þ·ÎÄÚÇÇ´Â ´ÙÀ½°ú °°ÀÌ ±¸ÇöµË´Ï´Ù.

     public Object clone() { return new Manifest(this); }
 

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ clone
¹Ýȯ°ª:
ÀÌ Manifest »þ·ÎÄÚÇÇ
°ü·Ã Ç׸ñ:
Cloneable

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.