|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjava.util.zip.ZipFile
java.util.jar.JarFile
public class JarFile
JarFile
클래스는,java.io.RandomAccessFile
로 열릴 수가 있는 임의의 파일로부터 jar 파일의 내용을 읽어내기 위해서(때문에) 사용합니다. 이 클래스는,java.util.zip.ZipFile
클래스를 확장해, 임의의 Manifest
엔트리의 read를 지원합니다. Manifest
엔트리는, jar 파일과 그 엔트리의 메타 정보를 지정하기 위해서 사용합니다.
별도 지정된 사항이 없는 경우,null 인수를 생성자 , 또는 이 클래스의 메소드에 건네주면(자) NullPointerException
가 throw 됩니다.
Manifest
,
ZipFile
,
JarEntry
필드의 개요 | |
---|---|
static int |
CENATT
|
static int |
CENATX
|
static int |
CENCOM
|
static int |
CENCRC
|
static int |
CENDSK
|
static int |
CENEXT
|
static int |
CENFLG
|
static int |
CENHDR
|
static int |
CENHOW
|
static int |
CENLEN
|
static int |
CENNAM
|
static int |
CENOFF
|
static long |
CENSIG
|
static int |
CENSIZ
|
static int |
CENTIM
|
static int |
CENVEM
|
static int |
CENVER
|
static int |
ENDCOM
|
static int |
ENDHDR
|
static int |
ENDOFF
|
static long |
ENDSIG
|
static int |
ENDSIZ
|
static int |
ENDSUB
|
static int |
ENDTOT
|
static int |
EXTCRC
|
static int |
EXTHDR
|
static int |
EXTLEN
|
static long |
EXTSIG
|
static int |
EXTSIZ
|
static int |
LOCCRC
|
static int |
LOCEXT
|
static int |
LOCFLG
|
static int |
LOCHDR
|
static int |
LOCHOW
|
static int |
LOCLEN
|
static int |
LOCNAM
|
static long |
LOCSIG
|
static int |
LOCSIZ
|
static int |
LOCTIM
|
static int |
LOCVER
|
static String |
MANIFEST_NAME
JAR Manifest 파일의 이름입니다. |
클래스 java.util.zip. ZipFile 로부터 상속된 필드 |
---|
OPEN_DELETE , OPEN_READ |
생성자 의 개요 | |
---|---|
JarFile (File file)
지정된 File 객체로부터 읽어내기 위한, 새로운 JarFile 를 작성합니다. |
|
JarFile (File file,
boolean verify)
지정된 File 객체로부터 읽어내기 위한, 새로운 JarFile 를 작성합니다. |
|
JarFile (File file,
boolean verify,
int mode)
지정된 File 객체로부터 지정한 모드로 읽어내기 위한, 새로운 JarFile 를 작성합니다. |
|
JarFile (String name)
지정된 파일 name 로부터 읽어내기 위한, 새로운 JarFile 를 작성합니다. |
|
JarFile (String name,
boolean verify)
지정된 파일 name 로부터 읽어내기 위한, 새로운 JarFile 를 작성합니다. |
메소드의 개요 | |
---|---|
Enumeration <JarEntry > |
entries ()
zip 파일 엔트리의 열거를 돌려줍니다. |
ZipEntry |
getEntry (String name)
지정된 엔트리명의 ZipEntry 를 돌려줍니다. |
InputStream |
getInputStream (ZipEntry ze)
지정된 ZIP 파일 엔트리의 내용을 읽어들이기 위한 입력 스트림을 돌려줍니다. |
JarEntry |
getJarEntry (String name)
지정된 엔트리명의 JarEntry 를 돌려줍니다. |
Manifest |
getManifest ()
jar 파일의 Manifest를 돌려줍니다. |
클래스 java.util.zip. ZipFile 로부터 상속된 메소드 |
---|
close , finalize , getName , size |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
필드의 상세 |
---|
public static final String MANIFEST_NAME
public static final long LOCSIG
public static final long EXTSIG
public static final long CENSIG
public static final long ENDSIG
public static final int LOCHDR
public static final int EXTHDR
public static final int CENHDR
public static final int ENDHDR
public static final int LOCVER
public static final int LOCFLG
public static final int LOCHOW
public static final int LOCTIM
public static final int LOCCRC
public static final int LOCSIZ
public static final int LOCLEN
public static final int LOCNAM
public static final int LOCEXT
public static final int EXTCRC
public static final int EXTSIZ
public static final int EXTLEN
public static final int CENVEM
public static final int CENVER
public static final int CENFLG
public static final int CENHOW
public static final int CENTIM
public static final int CENCRC
public static final int CENSIZ
public static final int CENLEN
public static final int CENNAM
public static final int CENEXT
public static final int CENCOM
public static final int CENDSK
public static final int CENATT
public static final int CENATX
public static final int CENOFF
public static final int ENDSUB
public static final int ENDTOT
public static final int ENDSIZ
public static final int ENDOFF
public static final int ENDCOM
생성자 의 상세 |
---|
public JarFile(String name) throws IOException
name
로부터 읽어내기 위한, 새로운 JarFile
를 작성합니다. JarFile
가 서명되고 있는지 어떤지가 확인됩니다.
name
- 읽을 위해(때문에) 여는 jar 파일의 이름
IOException
- 입출력 에러가 발생했을 경우
SecurityException
- 파일에의 액세스가 SecurityManager 에 의해 거부되었을 경우public JarFile(String name, boolean verify) throws IOException
name
로부터 읽어내기 위한, 새로운 JarFile
를 작성합니다.
name
- 읽을 위해(때문에) 여는 jar 파일의 이름verify
- jar 파일이 서명되고 있는 것을 확인할지 어떨지
IOException
- 입출력 에러가 발생했을 경우
SecurityException
- 파일에의 액세스가 SecurityManager 에 의해 거부되었을 경우public JarFile(File file) throws IOException
File
객체로부터 읽어내기 위한, 새로운 JarFile
를 작성합니다. JarFile
가 서명되고 있는지 어떤지가 확인됩니다.
file
- 읽을 위해(때문에) 열리는 jar 파일
IOException
- 입출력 에러가 발생했을 경우
SecurityException
- 파일에의 액세스가 SecurityManager 에 의해 거부되었을 경우public JarFile(File file, boolean verify) throws IOException
File
객체로부터 읽어내기 위한, 새로운 JarFile
를 작성합니다.
file
- 읽을 위해(때문에) 열리는 jar 파일verify
- jar 파일이 서명되고 있는 것을 확인할지 어떨지
IOException
- 입출력 에러가 발생했을 경우
SecurityException
- 파일에의 액세스가 SecurityManager 에 의해 거부되었을 경우public JarFile(File file, boolean verify, int mode) throws IOException
File
객체로부터 지정한 모드로 읽어내기 위한, 새로운 JarFile
를 작성합니다. 모드 인수는,OPEN_READ 또는 OPEN_READ | OPEN_DELETE 일 필요가 있습니다.
file
- 읽을 위해(때문에) 열리는 jar 파일verify
- jar 파일이 서명되고 있는 것을 확인할지 어떨지mode
- 파일이 열리는 모드
IOException
- 입출력 에러가 발생했을 경우
IllegalArgumentException
- mode 인수가 무효인 경우
SecurityException
- 파일에의 액세스가 SecurityManager 에 의해 거부되었을 경우메소드의 상세 |
---|
public Manifest getManifest() throws IOException
null
를 돌려줍니다.
null
IllegalStateException
- jar 파일이 닫혀지고 있는 경우에, throw 되는 일이 있다
IOException
public JarEntry getJarEntry(String name)
JarEntry
를 돌려줍니다. 발견되지 않는 경우는 null
를 돌려줍니다.
name
- jar 파일의 엔트리명
JarEntry
. 발견되지 않는 경우는 null
IllegalStateException
- jar 파일이 닫혀지고 있는 경우에, throw 되는 일이 있는JarEntry
public ZipEntry getEntry(String name)
ZipEntry
를 돌려줍니다. 발견되지 않는 경우는 null
를 돌려줍니다.
ZipFile
내의 getEntry
name
- jar 파일의 엔트리명
ZipEntry
. 발견되지 않는 경우는 null
IllegalStateException
- jar 파일이 닫혀지고 있는 경우에, throw 되는 일이 있는ZipEntry
public Enumeration <JarEntry > entries()
ZipFile
내의 entries
public InputStream getInputStream(ZipEntry ze) throws IOException
ZipFile
내의 getInputStream
ze
- ZIP 파일 엔트리
ZipException
- zip 파일 형식 에러가 발생했을 경우
IOException
- 입출력 에러가 발생했을 경우
SecurityException
- jar 파일 엔트리가 잘못해 서명되었을 경우
IllegalStateException
- jar 파일이 닫혀지고 있는 경우에, throw 되는 일이 있다
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.