|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.util.zip.InflaterInputStream
java.util.zip.ZipInputStream
java.util.jar.JarInputStream
public class JarInputStream
JarInputStream
클래스는, 임의의 입력 스트림로부터 JAR 파일의 내용을 읽어내는데 사용합니다. 이 클래스는,java.util.zip.ZipInputStream
클래스를 확장해, 임의의 Manifest
엔트리의 read를 지원합니다. Manifest
엔트리는, JAR 파일과 그 엔트리의 메타 정보를 포함하기 위해서 사용합니다.
Manifest
,
ZipInputStream
필드의 개요 | |
---|---|
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
|
클래스 java.util.zip. InflaterInputStream 로부터 상속된 필드 |
---|
buf , inf , len |
클래스 java.io. FilterInputStream 로부터 상속된 필드 |
---|
in |
생성자 의 개요 | |
---|---|
JarInputStream (InputStream in)
새로운 JarInputStream 를 작성해, 임의의 Manifest를 읽어들입니다. |
|
JarInputStream (InputStream in,
boolean verify)
새로운 JarInputStream 를 작성해, 임의의 Manifest를 읽어들입니다. |
메소드의 개요 | |
---|---|
protected ZipEntry |
createZipEntry (String name)
지정된 JAR 파일 엔트리명에 대해, 새로운 JarEntry (또는 ZipEntry )를 작성합니다. |
Manifest |
getManifest ()
이 JAR 파일의 Manifest 를 돌려줍니다. |
ZipEntry |
getNextEntry ()
다음의 ZIP 파일 엔트리를 읽어내, 엔트리 데이터의 선두에 스트림을 배치합니다. |
JarEntry |
getNextJarEntry ()
다음의 JAR 파일 엔트리를 읽어내, 엔트리 데이터의 선두에 스트림을 배치합니다. |
int |
read (byte[] b,
int off,
int len)
현재의 JAR 파일 엔트리로부터 바이트의 배열에 읽어들입니다. |
클래스 java.util.zip. ZipInputStream 로부터 상속된 메소드 |
---|
available , close , closeEntry , skip |
클래스 java.util.zip. InflaterInputStream 로부터 상속된 메소드 |
---|
fill , mark , markSupported , read , reset |
클래스 java.io. FilterInputStream 로부터 상속된 메소드 |
---|
read |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
필드의 상세 |
---|
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 JarInputStream(InputStream in) throws IOException
JarInputStream
를 작성해, 임의의 Manifest를 읽어들입니다. Manifest가 있어, JarInputStream 가 서명되고 있는 경우에는, 서명을 확인합니다.
in
- 실제의 입력 스트림
IOException
- 입출력 에러가 발생했을 경우public JarInputStream(InputStream in, boolean verify) throws IOException
JarInputStream
를 작성해, 임의의 Manifest를 읽어들입니다. Manifest가 있어, verify 가 true 로, JarInputStream 가 서명되고 있는 경우에는, 서명을 확인합니다.
in
- 실제의 입력 스트림verify
- JarInputStream 가 서명되고 있는 것을 확인할지 어떨지
IOException
- 입출력 에러가 발생했을 경우메소드의 상세 |
---|
public Manifest getManifest()
Manifest
를 돌려줍니다. Manifest
가 없는 경우는 null
를 돌려줍니다.
Manifest
. 없는 경우는 null
public ZipEntry getNextEntry() throws IOException
ZipInputStream
내의 getNextEntry
ZipException
- ZIP 파일 에러가 발생했을 경우
IOException
- 입출력 에러가 발생했을 경우
SecurityException
- jar 파일 엔트리가 잘못해 서명되었을 경우public JarEntry getNextJarEntry() throws IOException
ZipException
- ZIP 파일 에러가 발생했을 경우
IOException
- 입출력 에러가 발생했을 경우
SecurityException
- jar 파일 엔트리가 잘못해 서명되었을 경우public int read(byte[] b, int off, int len) throws IOException
len
가 제로가 아닌 경우, 이 메소드는, 얼마인가의 입력이 사용 가능하게 될 때까지 블록 됩니다. 그 이외의 경우, 바이트는 읽어내지고 두,0
이 돌려주어집니다. 확인이 유효하게 되어 있는 경우는, 엔트리의 마지막에 달할 때까지의 언젠가는, 현재 엔트리에 있는 모든 부정한 서명이 보고됩니다.
ZipInputStream
내의 read
b
- 데이터의 읽기처의 버퍼off
- 카피처의 배열 b
내에서의 개시 좌표len
- 읽어들이는 최대 바이트수
NullPointerException
- b
가 null
의 경우
IndexOutOfBoundsException
- off
가 부인지,len
가 부이든가, 혹은 len
가 b.length - off
보다 큰 경우
ZipException
- ZIP 파일 에러가 발생했을 경우
IOException
- 입출력 에러가 발생했을 경우
SecurityException
- jar 파일 엔트리가 잘못해 서명되었을 경우FilterInputStream.in
protected ZipEntry createZipEntry(String name)
JarEntry
(또는 ZipEntry
)를 작성합니다. 지정된 JAR 파일 엔트리명의 Manifest 속성은, 신규 JarEntry
에 카피됩니다.
ZipInputStream
내의 createZipEntry
name
- JAR/ZIP 파일 엔트리의 이름
JarEntry
객체
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.