|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.util.zip.DeflaterOutputStream
public class DeflaterOutputStream
이 클래스는, deflate 압축 형식에서 압축되고 있는 데이터의 출력 스트림 필터를 구현합니다. 또, GZIPOutputStream 등의 다른 형태의 압축 필터는 이 클래스에 근거하고 있습니다.
Deflater | 필드의 개요 | |
|---|---|
protected byte[] |
buf
압축 데이터를 기입하기 위한 출력 버퍼입니다. |
protected Deflater |
def
이 스트림로 사용하는 압력입니다. |
| 클래스 java.io. FilterOutputStream 로부터 상속된 필드 |
|---|
out |
| 생성자 의 개요 | |
|---|---|
DeflaterOutputStream (OutputStream out)
디폴트의 압력 및 버퍼 사이즈로 새로운 출력 스트림을 작성합니다. |
|
DeflaterOutputStream (OutputStream out,
Deflater def)
지정된 압력 및 디폴트의 버퍼 사이즈로 새로운 출력 스트림을 작성합니다. |
|
DeflaterOutputStream (OutputStream out,
Deflater def,
int size)
지정된 압력 및 버퍼 사이즈로 새로운 출력 스트림을 작성합니다. |
|
| 메소드의 개요 | |
|---|---|
void |
close ()
나머지의 압축 데이터를 출력 스트림에 기입해, 스트림을 닫습니다. |
protected void |
deflate ()
압축 데이터의 다음의 블록을 출력 스트림에 기입합니다. |
void |
finish ()
출력 스트림에의 압축 데이터의 기입을 종료합니다. |
void |
write (byte[] b,
int off,
int len)
바이트 배열을 압축 출력 스트림에 기입합니다. |
void |
write (int b)
바이트를 압축 출력 스트림에 기입합니다. |
| 클래스 java.io. FilterOutputStream 로부터 상속된 메소드 |
|---|
flush , write |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| 필드의 상세 |
|---|
protected Deflater def
protected byte[] buf
| 생성자 의 상세 |
|---|
public DeflaterOutputStream(OutputStream out,
Deflater def,
int size)
out - 출력 스트림def - 압력 (디플렉터)size - 출력 버퍼 사이즈
IllegalArgumentException - 사이즈가 0 이하의 경우
public DeflaterOutputStream(OutputStream out,
Deflater def)
out - 출력 스트림def - 압력 (디플렉터)public DeflaterOutputStream(OutputStream out)
out - 출력 스트림| 메소드의 상세 |
|---|
public void write(int b)
throws IOException
FilterOutputStream 내의 write b - 기입해지는 바이트
IOException - 입출력 에러가 발생했을 경우
public void write(byte[] b,
int off,
int len)
throws IOException
FilterOutputStream 내의 write b - 기입해지는 데이터off - 데이터의 개시 오프셋(offset)len - 데이터의 길이
IOException - 입출력 에러가 발생했을 경우FilterOutputStream.write(int)
public void finish()
throws IOException
IOException - 입출력 에러가 발생했을 경우
public void close()
throws IOException
Closeable 내의 close FilterOutputStream 내의 close IOException - 입출력 에러가 발생했을 경우FilterOutputStream.flush() ,
FilterOutputStream.out
protected void deflate()
throws IOException
IOException - 입출력 에러가 발생했을 경우
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.