|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor¡¡ ¡¡ | ¸Þ¼µå | »ó¼¼: Çʵå | constructor¡¡ ¡¡ | ¸Þ¼µå |
public static interface Pack200.Unpacker
unpacker ¿£ÁøÀº ÆÑ µÈ ½ºÆ®¸²À» JAR ÆÄÀÏ·Î º¯È¯ÇÕ´Ï´Ù. ÀÌ ¿£ÁøÀÇ ÀνºÅϽº´Â Pack200.newUnpacker()
¸¦
»ç¿ëÇØ ÃëµæÇÒ ¼ö ÀÖ½À´Ï´Ù.
ÀÌ ¿£Áø¿¡ ÀÇÇØ »ý¼ºµÈ JAR ÆÄÀÏ¿¡´Â ¸ðµÎ, zip ÆÄÀÏ ÄÚ¸àÆ®·Î¼ ij¸¯ÅÍ ¶óÀÎ ¡¸PACK200¡¹°¡ Æ÷ÇԵ˴ϴÙ. ÀÌ°Í¿¡ ÀÇÇØ JAR ¾îÄ«À̺ê(archive)°¡ ÆÑ ¹× unpack µÈ °ÍÀ» ¹èÄ¡ÀÚ°¡ °ËÃâÇÒ ¼ö ÀÖ°Ô µË´Ï´Ù.
ÇÊµå °³¿ä | |
---|---|
static String |
DEFLATE_HINT
unpacker°¡ Àü¼Û µÈ DEFLATE_HINT °ªÀ» ¸ðµÎ ¹«½ÃÇØ, ÁöÁ¤µÈ °ª TRUE ¶Ç´Â FALSE ·Î ¿Å°Ü³õ´Â °ÍÀ» ³ªÅ¸³»´Â ÇÁ·ÎÆÛƼ. |
static String |
FALSE
ij¸¯ÅÍ ¶óÀÎ ¡¸false¡¹´Â ƯÁ¤ÀÇ ÇÁ·ÎÆÛƼ·Î »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. |
static String |
KEEP
ij¸¯ÅÍ ¶óÀÎ ¡¸keep¡¹´Â ƯÁ¤ÀÇ ÇÁ·ÎÆÛƼ·Î »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. |
static String |
PROGRESS
unpacker Áøô »óȲÀ» ÆÛ¼¾Æ®·Î °¡¸®Åµ´Ï´Ù. |
static String |
TRUE
ij¸¯ÅÍ ¶óÀÎ ¡¸true¡¹´Â ƯÁ¤ÀÇ ÇÁ·ÎÆÛƼ·Î »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
void |
addPropertyChangeListener (PropertyChangeListener listener)
PropertyChange À̺¥Æ®ÀÇ ¸®½º³Ê¸¦ ÇÁ·ÎÆÛƼ ¸Ê¿¡ µî·ÏÇÕ´Ï´Ù. |
SortedMap <String,
String > |
properties ()
ÀÌ ¿£ÁøÀÇ ÇÁ·ÎÆÛƼ ¼¼Æ®¸¦ ÃëµæÇÕ´Ï´Ù. |
void |
removePropertyChangeListener (PropertyChangeListener listener)
addPropertyChangeListener(java.beans.PropertyChangeListener) ¿¡ ÀÇÇØ Ãß°¡µÈ, PropertyChange À̺¥Æ®ÀÇ ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
unpack (File in,
JarOutputStream out)
Pack200 ¾îÄ«À̺ê(archive)¸¦ Àбâ, encode µÈ JAR¸¦ JarOutputStream¿¡ Ãâ·ÂÇÕ´Ï´Ù. |
void |
unpack (InputStream in,
JarOutputStream out)
Pack200¸¦ Àбâ, encode µÈ JAR¸¦ JarOutputStream¿¡ Ãâ·ÂÇÕ´Ï´Ù. |
ÇʵåÀÇ »ó¼¼ |
---|
static final String KEEP
DEFLATE_HINT
,
Á¤¼ö Çʵ尪 static final String TRUE
DEFLATE_HINT
,
Á¤¼ö Çʵ尪 static final String FALSE
DEFLATE_HINT
,
Á¤¼ö Çʵ尪 static final String DEFLATE_HINT
TRUE
¶Ç´Â FALSE
·Î ¿Å°Ü³õ´Â °ÍÀ» ³ªÅ¸³»´Â ÇÁ·ÎÆÛƼ. ±âº»°ª´Â Ư¼öÇÑ Ä³¸¯ÅÍ ¶óÀÎ KEEP
ÀÔ´Ï´Ù. ÀÌ°ÍÀº unpacker¿¡ ´ëÇØ, Àü¼Û µÈ ¸ðµç µðÇ÷¹ÀÌ¼Ç ÈùÆ®¸¦ º¸Á¸Çϵµ·Ï ¿ä±¸ÇÕ´Ï´Ù.
static final String PROGRESS
PropertyChangeListener
¿Í
ÇÔ²² ÀÌ ÇÁ·ÎÆÛƼ¸¦ °üÂûÇϵµ·ÏÀÇÇØ ÁÖ¼¼¿ä.
unpacker´Â ÃÖÀúÇÑ, ÆÐÅ· Á¶ÀÛÀÇ ÃÖÃÊ·Î ÁøôÀ» 0 ¿¡ Á¶ÀÛÀÇ ¸¶Áö¸·¿¡ ÁøôÀ» 100 À¸·Î ¼³Á¤ÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
addPropertyChangeListener(java.beans.PropertyChangeListener)
,
Á¤¼ö Çʵ尪 ¸Þ¼µåÀÇ »ó¼¼ |
---|
SortedMap <String, String > properties()
ÇÁ·ÎÆÛƼ ¸Ê¿¡´Â Á¤ÀÇ ³¡³ ±¸Çö °íÀ¯ÀÇ ÇÁ·ÎÆÛƼ³ª µðÆúÆ®ÀÇ ÇÁ·ÎÆÛƼ¸¦ Æ÷ÇÔÇÒ ¼ö ÀÖ½À´Ï´Ù. »ç¿ëÀÚ´Â ±âÁ¸ÀÇ ÇÁ·ÎÆÛƼ¸¦ º¯°æÇϱâ Àü¿¡ Á¤º¸¸¦ È®ÀÎÇØ ¹Ì¸¦ ÃæºÐÈ÷ ÀÌÇØÇÏ´Â °ÍÀÌ ±ÇÀ¯¹Þ°í ÀÖ½À´Ï´Ù.
±¸Çö °íÀ¯ÀÇ ÇÁ·ÎÆÛƼ¿¡´Â com. ±×¸®°í ½ÃÀ۵Ǵ ±¸ÇöÀÚ°¡ °ü·ÃµÈ ÆÐÅ°Áö¸í, ¶Ç´Â À¯»çÇÑ Á¢µÎ»ç°¡ ºÎ°¡µË´Ï´Ù. pack. ¹× unpack. ±×¸®°í ½ÃÀ۵Ǵ ¸ðµç ÇÁ·ÎÆÛƼ¸íÀº ÀÌ API ¿ëÀ¸·Î ¿¹¾àµÇ°í ÀÖ½À´Ï´Ù.
ºÒ¸íÇÑ ÇÁ·ÎÆÛƼ´Â ¹ÌÁöÁ¤ÀÇ ¿¡·¯·Î¼ ¹«½Ã ¶Ç´Â °ÅºÎÇÒ ¼ö ÀÖ½À´Ï´Ù. ¹«È¿ÀÎ ¿£Æ®¸®¿¡ÀÇÇØ »ó¼¼ ºÒ¸í ¿¡·¯°¡ ¹ß»ýµÇ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.
void unpack(InputStream in, JarOutputStream out) throws IOException
ÀÔ·ÂÀ» ´Ý½À´Ï´Ù¸¸, Ãâ·ÂÀº ´ÝÁö ¾Ê½À´Ï´Ù (Ãâ·Â¿¡´Â º¸´Ù ¸¹Àº ¿ä¼Ò¸¦ ÃàÀûÇÒ ¼ö ÀÖ´Ù).
in
- InputStreamout
- JarOutputStream
IOException
- ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìvoid unpack(File in, JarOutputStream out) throws IOException
Ãâ·ÂÀº ´ÝÁö ¾Ê½À´Ï´Ù (Ãâ·Â¿¡´Â º¸´Ù ¸¹Àº ¿ä¼Ò¸¦ ÃàÀûÇÒ ¼ö ÀÖ´Ù).
in
- Fileout
- JarOutputStream
IOException
- ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìvoid addPropertyChangeListener(PropertyChangeListener listener)
listener
- ÇÁ·ÎÆÛƼÀÇ º¯°æ½Ã¿¡ È£ÃâµÇ´Â °´Ã¼properties()
,
PROGRESS
void removePropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener(java.beans.PropertyChangeListener)
¿¡ ÀÇÇØ Ãß°¡µÈ, PropertyChange À̺¥Æ®ÀÇ ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù.
listener
- »èÁ¦µÇ´Â PropertyChange ¸®½º³ÊaddPropertyChangeListener(java.beans.PropertyChangeListener)
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor¡¡ ¡¡ | ¸Þ¼µå | »ó¼¼: Çʵå | constructor¡¡ ¡¡ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.