|
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()
��ɽ�ѹ������д��������IJ���������رյײ����� |
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
- ѹ���� ("deflater")size
- �����������С
IllegalArgumentException
- �����СΪ <= 0public DeflaterOutputStream(OutputStream out, Deflater def)
out
- �����def
- ѹ���� ("deflater")public DeflaterOutputStream(OutputStream out)
out
- �����������ϸ��Ϣ |
---|
public void write(int b) throws IOException
FilterOutputStream
�е� write
b
- Ҫд����ֽ�
IOException
- ������� I/O ����public void write(byte[] b, int off, int len) throws IOException
FilterOutputStream
�е� write
b
- Ҫд�������off
- ���ݵij�ʼƫ����len
- ���ݵij���
IOException
- ������� I/O ����FilterOutputStream.write(int)
public void finish() throws IOException
IOException
- ������� I/O ����public void close() throws IOException
Closeable
�е� close
FilterOutputStream
�е� close
IOException
- ������� I/O ����FilterOutputStream.flush()
,
FilterOutputStream.out
protected void deflate() throws IOException
IOException
- ������� I/O ����
|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������