|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
jp.hishidama.zip.ZipOutputStream
public class ZipOutputStream
Zipファイルを作成するクラス.
Info-ZIPのzipcloakとApache AntのZipOutputStreamを参考に作ったクラスです。
フィールドの概要 | |
---|---|
static int |
DEFLATED
|
static int |
STORED
|
コンストラクタの概要 | |
---|---|
ZipOutputStream(OutputStream out)
コンストラクター. |
|
ZipOutputStream(OutputStream out,
String encoding)
コンストラクター. |
メソッドの概要 | |
---|---|
void |
close()
|
void |
closeEntry()
エントリークローズ. |
void |
finish()
出力終了. |
void |
flush()
|
String |
getEncoding()
エンコーディング取得. |
void |
putNextEntry(ZipEntry ze)
エントリー設定. |
void |
setComment(String comment)
コメント設定. |
void |
setEncoding(String encoding)
エンコーディング設定. |
void |
setLevel(int level)
圧縮レベル設定. |
void |
setMethod(int method)
圧縮メソッド設定. |
void |
setPassword(byte[] password)
パスワード設定. |
void |
write(byte[] b,
int offset,
int length)
|
void |
write(int b)
|
クラス java.io.FilterOutputStream から継承されたメソッド |
---|
write |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int STORED
public static final int DEFLATED
コンストラクタの詳細 |
---|
public ZipOutputStream(OutputStream out)
out
- 出力ストリームpublic ZipOutputStream(OutputStream out, String encoding)
out
- 出力ストリームメソッドの詳細 |
---|
public void setEncoding(String encoding)
encoding
- エンコーディングpublic String getEncoding()
public void setPassword(byte[] password)
password
- パスワードpublic void finish() throws IOException
IOException
public void closeEntry() throws IOException
IOException
public void putNextEntry(ZipEntry ze) throws IOException
ze
- エントリー
IOException
public void setComment(String comment)
comment
- コメントpublic void setLevel(int level)
level
- 圧縮レベルpublic void setMethod(int method)
method
- 圧縮メソッドDEFLATED
,
STORED
public void write(byte[] b, int offset, int length) throws IOException
FilterOutputStream
内の write
IOException
public void write(int b) throws IOException
FilterOutputStream
内の write
IOException
public void close() throws IOException
Closeable
内の close
FilterOutputStream
内の close
IOException
public void flush() throws IOException
Flushable
内の flush
FilterOutputStream
内の flush
IOException
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |