|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.util.zip.InflaterInputStream
java.util.zip.ZipInputStream
public class ZipInputStream
이 클래스는, ZIP 파일 형식에서 파일을 읽어들이는 입력 스트림 필터를 구현합니다. 압축 데이터와 압축 해제 데이터의 양쪽 모두를 지원합니다.
필드의 개요 | |
---|---|
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 |
생성자 의 개요 | |
---|---|
ZipInputStream (InputStream in)
새로운 ZIP 입력 스트림을 작성합니다. |
메소드의 개요 | |
---|---|
int |
available ()
현재의 입력 데이터의 EOF 에 이른 후에 호출했을 경우에 0 을 돌려줍니다. |
void |
close ()
이 입력 스트림을 닫아, 그 스트림에 관련하는 모든 system resource를 해제합니다. |
void |
closeEntry ()
현재의 ZIP 엔트리를 닫아 다음의 엔트리를 읽어들이기 위해서(때문에) 스트림을 배치합니다. |
protected ZipEntry |
createZipEntry (String name)
지정된 엔트리명의 새로운 ZipEntry 객체를 작성합니다. |
ZipEntry |
getNextEntry ()
다음의 ZIP 파일 엔트리를 읽어내, 엔트리 데이터의 선두에 스트림을 배치합니다. |
int |
read (byte[] b,
int off,
int len)
현재의 ZIP 엔트리로부터 바이트 배열에 읽어들입니다. |
long |
skip (long n)
현재의 ZIP 엔트리로 지정의 바이트수만큼 스킵 합니다. |
클래스 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 ZipInputStream(InputStream in)
in
- 실제의 입력 스트림메소드의 상세 |
---|
public ZipEntry getNextEntry() throws IOException
ZipException
- ZIP 파일 에러가 발생했을 경우
IOException
- 입출력 에러가 발생했을 경우public void closeEntry() throws IOException
ZipException
- ZIP 파일 에러가 발생했을 경우
IOException
- 입출력 에러가 발생했을 경우public int available() throws IOException
이 메소드는, 블록 하지 않고 읽어들일 수 있는 실제의 바이트수를 돌려주기 위한 것이 아닙니다.
InflaterInputStream
내의 available
IOException
- 입출력 에러가 발생했을 경우public int read(byte[] b, int off, int len) throws IOException
len
가 제로가 아닌 경우, 이 메소드는, 얼마인가의 입력이 사용 가능하게 될 때까지 블록 됩니다. 그 이외의 경우, 바이트는 읽어내지고 두,0
이 돌려주어집니다.
InflaterInputStream
내의 read
b
- 데이터의 읽기처의 버퍼off
- 카피처의 배열 b
내에서의 개시 좌표len
- 읽히는 최대 바이트수
NullPointerException
- b
가 null
의 경우
IndexOutOfBoundsException
- off
가 부인지,len
가 부이든가, 혹은 len
가 b.length - off
보다 큰 경우
ZipException
- ZIP 파일 에러가 발생했을 경우
IOException
- 입출력 에러가 발생했을 경우FilterInputStream.in
public long skip(long n) throws IOException
InflaterInputStream
내의 skip
n
- 스킵 하는 바이트수
ZipException
- ZIP 파일 에러가 발생했을 경우
IOException
- 입출력 에러가 발생했을 경우
IllegalArgumentException
- n 가 0 이하의 경우public void close() throws IOException
Closeable
내의 close
InflaterInputStream
내의 close
IOException
- 입출력 에러가 발생했을 경우FilterInputStream.in
protected ZipEntry createZipEntry(String name)
ZipEntry
객체를 작성합니다.
name
- ZIP 파일의 엔트리명
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.