|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||
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 - エントリー
IOExceptionpublic 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 内の writeIOException
public void write(int b)
throws IOException
FilterOutputStream 内の writeIOException
public void close()
throws IOException
Closeable 内の closeFilterOutputStream 内の closeIOException
public void flush()
throws IOException
Flushable 内の flushFilterOutputStream 内の flushIOException
|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||