|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.util.zip.InflaterInputStream
java.util.zip.GZIPInputStream
public class GZIPInputStream
이 클래스는, GZIP 파일 형식에서 압축된 데이터를 읽어들이기 위한 스트림 필터를 구현합니다.
InflaterInputStream | 필드의 개요 | |
|---|---|
protected CRC32 |
crc
압축 해제된 데이터에 사용하는 CRC-32 입니다. |
protected boolean |
eos
입력 스트림의 끝을 나타냅니다. |
static int |
GZIP_MAGIC
GZIP 의 헤더 매직 번호입니다. |
| 클래스 java.util.zip. InflaterInputStream 로부터 상속된 필드 |
|---|
buf , inf , len |
| 클래스 java.io. FilterInputStream 로부터 상속된 필드 |
|---|
in |
| 생성자 의 개요 | |
|---|---|
GZIPInputStream (InputStream in)
디폴트의 버퍼 사이즈로 새로운 입력 스트림을 작성합니다. |
|
GZIPInputStream (InputStream in,
int size)
지정된 버퍼 사이즈로 새로운 입력 스트림을 작성합니다. |
|
| 메소드의 개요 | |
|---|---|
void |
close ()
이 입력 스트림을 닫아, 그 스트림에 관련하는 모든 system resource를 해제합니다. |
int |
read (byte[] buf,
int off,
int len)
압축 해제 데이터를 바이트 배열에 읽어들입니다. |
| 클래스 java.util.zip. InflaterInputStream 로부터 상속된 메소드 |
|---|
available , fill , mark , markSupported , read , reset , skip |
| 클래스 java.io. FilterInputStream 로부터 상속된 메소드 |
|---|
read |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| 필드의 상세 |
|---|
protected CRC32 crc
protected boolean eos
public static final int GZIP_MAGIC
| 생성자 의 상세 |
|---|
public GZIPInputStream(InputStream in,
int size)
throws IOException
in - 입력 스트림size - 입력 버퍼 사이즈
IOException - 입출력 에러가 발생했을 경우
IllegalArgumentException - 사이즈가 0 이하의 경우
public GZIPInputStream(InputStream in)
throws IOException
in - 입력 스트림
IOException - 입출력 에러가 발생했을 경우| 메소드의 상세 |
|---|
public int read(byte[] buf,
int off,
int len)
throws IOException
len 가 제로가 아닌 경우, 이 메소드는, 얼마인가의 입력이 압축 해제 가능하게 될 때까지 블록 됩니다. 그 이외의 경우, 바이트는 읽어내지고 두,0 이 돌려주어집니다.
InflaterInputStream 내의 read buf - 데이터의 읽기처의 버퍼off - 카피처의 배열 b 내에서의 개시 좌표len - 읽히는 최대 바이트수
NullPointerException - buf 가 null 의 경우
IndexOutOfBoundsException - off 가 부인지,len 가 부이든가, 혹은 len 가 buf.length - off 보다 큰 경우
IOException - 입출력 에러가 발생했는지, 압축 입력 데이터가 망가져 있는 경우FilterInputStream.in
public void close()
throws IOException
Closeable 내의 close InflaterInputStream 내의 close IOException - 입출력 에러가 발생했을 경우FilterInputStream.in
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.