Zipinputstream To Zipoutputstream

该日志由 517421 于6年前发表在综合分类下,最后更新于 2013年05月11日. Class Overview. ZipInputStream - This class implements an input stream filter for reading files in the ZIP file format. getSize() always returned -1 when the size of the zip entry was accessed. Rebornbuddy v1. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. register (new ZipOutputStream (bos)); FileInputStream fis = closer. If you want to use a stream to create zip files, check out the ZipOutputStream. Zipping and Unzipping in Java. close 以下、サンプルコード。 Zip 内にディレクトリ構造がある事は想定していない、単純なコードにしています。. ZipInputStream: ZipOutputStream: A to Z: JavaDoc & Examples. A slide from Elliotte Rusty Harold's presentation Java I/O at International Java Conference 2001 New York, Friday, March 2, 2000. ZipInputStream will not read Zip file comments. BufferedOutputStream; import java. Any implementation of ZipInputStream will be flawed to a certain degree, that's why I decided to implement ZipFile but not ZipInputStream yet. zip这个package里的class来完成压缩及解压缩的工作,但是我们知道,java对於文字的编码是以unicode为基础,因此,若是以ZipInputStream及ZipOutputStream来处理压缩及解压缩的工作,碰到中文档名或路径,那当然是以unicode来处理罗!. 썬것으로는 영문파일밖에는 안됩니다 -0-; 그래서 만약 한글 문서도 압축할려고 할려면 외국 개발자가 픽스해 놓은 클래스를 써야 합니다. android; android. Stores a Zip local file header. ZipInputStream and ZipOutputStream are the main classes in this package used while compressing and decompressing the zip files. Response 스트림으로 두 개의 다른 출력 스트림을 포함하는 ZipInputStream을 반환하려고합니다. In this quick tutorial, we'll discuss how to zip a file into an archive and how to unzip the archive - all using core libraries provided by Java. 5、ZipInputStream 可以得到每一个实体,但是却无法得到每一个实体的输入流。 6. In this article we will show you how to unzip it. I found the answer by myself: entry does not contain the correct size, but with each zipIn. In this article, we will discuss few commonly used Java Zip utility methods. ZipOutputStream is used to write ZipEntrys to the underlying stream. In this example, it will read a ZIP file from “C:\\MyFile. Eric Chang's Blog. 研究互联网产品和技术,提供原创中文精品教程. java ZipOutputStream压缩文件,ZipInputStream解压缩的更多相关文章. The system plays friendly returning ByteArrayOutputStream pdfs, docs and images so I wanted to return the zip file the same way. The below example uses ZipOutputStream to create a zip file from all the items in a directory. But it turns out that you can read and write to a ZipEntry just like a regular file. [maven-jarsigner] branch MSHARED-764 created (now 1810f80). This compensation may impact how and where products appear on this site including, for example, the order in which they appear. But, the number of. , zip files and a ZipOutputStream for writing data in a compressed format. 6m developers to have your questions answered on ZipInputStream of Telerik Document Processing ZipLibrary. The only stipulation is that you convert your data to byte arrays. 这个包里主要有ZipFile、 ZipOutputStream、ZipInputStream和ZipEntry这几个类。 ZipOutputStream是用来压缩文件 的,ZipInputStream和ZipFile是用来解压缩文件的,在压缩和解压缩的过程中,ZipEntry都会用到。在java的Zip压缩文件 中,每一个子文件都是一个ZipEntry对象。 来看这几个类: 1. XAP is actually a ZIP file (you already know that) and if you can open the XAP using Winzip or 7z, then it's okay. It presents a file stored in the archive. zip“, and decompress all zipped files to “C:\\outputzip” folder. Hi, A small quirk of the way things work. close 以下、サンプルコード。 Zip 内にディレクトリ構造がある事は想定していない、単純なコードにしています。. The setting of the project are show as below images which is quite straight forward. In any software application, be it client-server or distributed, data transfer is always there. accessibilityservice; android. While DeflaterOutputStream can write compressed zip file entries, this extension can write uncompressed entries as well. dll)を使用してフォルダをまるごとZIPファイル圧縮/解凍するサンプルです。フォルダを1つのファイルとしてバックアップ(ZIP)する時に有効な方法だと思います。. Closes the current entry if still active. ZipInputStream « File « Java Tutorial - Programming tutorials. 求一个解压方法,用ZipInputStream的下面是压缩方法,求一个对压缩后的byte[]的解压方法public byte[] ZipPackFiles(string filenames) { ZipOutputStream zos = n. We use cookies for various purposes including analytics. InputStream and java. ZipOutputStream. Are you telling me that I should not use methods provided in java. Zipファイルを解凍するだけのプログラムです。 JDK1. A ZipOutputStream is just a wrapper around an OutputStream that writes contents in the zip file format. Source file can be any file and that will be written in zip file. Includes support for both compressed and uncompressed 39 * entries method to return the actual. ZipEntry来解压,而不能使用java. Using (IBM) JDK 7 with the correct OS code page set (ibm437) works OK. To write a ZIP file, construct a ZipOutputStream that wraps a regular output stream. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. Java example to decompress files from a ZIP file. zip内のファイルに、日々の合計が「果物名:数」の形式で入っている。zip内のすべてのファイルを読み取り、果物ごとの合計を算出する。. zip package - where we can. getNextEntry() you get a fresh stream to read the content of your entry from. ZipInputStream will not read Zip file comments. java provides the 'java. ZipInputStream is a Java class that implements an input stream filter for reading files in the ZIP file format. class ZipLocalFileHeader. This Java example shows how create zip file from directory using Java ZipOutputStream class. ZipOutputStream class in Java This class implements an output stream filter for writing files in the ZIP file format. Java ZipInputStream. zip‘ package to compress and decompress the data In the below example we are using ZipOutputStream Class for output stream filter for writing files in the ZIP file format, ZipEntry Class to represent the Zip file entry and ZipInputStream Class for input stream filter for reading files in the ZIP file format. In this quick tutorial, we'll discuss how to zip a file into an archive and how to unzip the archive – all using core libraries provided by Java. To do this type of utilities Java comes with java. ZipInputStream cannot read segmented or spanned zip files. A zip file is received to be routed and unzipped by the routing template in Sterling Filegateway(SFG) and it fails to route with: FG_0455 Zip file is unreadable. zip包里也有这两个类,不过对中文的支持不佳,文件的注释与生成的文件名都不能用中文,否则乱码,不过对文件的内容不影响。. Field Trip #34 Creating and Reading Zip Files in Java By Keith Lynn java. Java では、ZIP 形式や GZIP 形式のデータの読込み、作成、更新を行うための java. The last few days I was trying unsuccessfully to generate some report that contained non-standard Unicode characters (in my case it was Greek, but I guess the same problem exists for other character sets as well, like Cyrillic, Armenian, etc). ZipOutPutStream - This class implements an output stream filter for writing files in the ZIP file format. zipentry zip java file read example zipoutputstream zipinputstream unzip tutorial java ¿Cómo creo una secuencia de entrada desde un ZipEntry Tengo una clase que envuelve ZipEntrys, pero me cuesta ver cómo podría escribir un método que devuelva un flujo de entrada desde cualquier ZipEntry. ZipInputStream(InputStream, Charset) - Constructor for class java. ZipOutputStream is used when you want to create an archive of files. Java zip 压缩解压缩文件 package day20; import java. These samples try to cover the range of situations you will encounter. register (new BufferedInputStream (fis)); ZipInputStream zis = closer. class ZipLocalFileHeader. J#のライブラリを使ってZIP圧縮、展開(解凍)、リスト表示を行う. When you are reading a ZIP file, a ZipEntry object returned by ZipFile or ZipInputStream contains the name, size, modification. This seems like it should be a fairly simple exercise but I've spent a day or more trying to get the contents of a MemoryStream compressed. Adds files to an existing Zip file. java zipentry setmethod. 经常可以看见各种压缩文件:zip、jar、GZ、 正常情况下在IO 操作中,所有的类库都是在 IO 包中。 在实例化ZipEntry 的时候,要设置名称,此名称实际上就是压缩文件中每一个元素的名称。 1. This Java example shows how create zip file from directory using Java ZipOutputStream class. The following code examples are extracted from open source projects. IOUtils provides a tested utility to copy between input and output streams, add commons-compress to you classpath, for example using gradle. odt (from Open Office) and this file is a compacted file (like docx) and we have some other files inside it (manifiest, xml, images etc). So we will go for compression which will give efficient representation of the data. How to use SharpZipLib to work with Zip files. Zip a File. reflect ZipInputStream. You can achieve Zip/Unzip functionality by following only two steps: Step 1: Download ICSharpCode. Bumper ZipFile/ZipEntry backport. ZipOutputStream、Antのならorg. org mailing list for the Java project. ServletOutputStreamで フィルタリングして作成することで、一時ファイルを作成せずに、 そのままレスポンスにファイルを流しこ…. J# Zip Class Question. I am using y. Preferred way to use Java ZipOutputStream and BufferedOutputStream. zip", and decompress all zipped files to "C:\\outputzip" folder. ZipInputStream: This class provides an implementation of FilterInputStream that decompresses data from an InputStream containing a ZIP archive. The ZipEntry class has several members which are particularly important or useful. import java. Creates a new ZIP input stream. If you have particular requirements, like you want a smaller library, or you want to exclude the Self-Extracting stuff, or you only want the ZLIB capability, then you may want to choose a different assembly. The ZipEntry object also acts as the marker through which the ZipOutputStream and ZipInputStream know which file in the compressed archive you are reading. import net. Cheers,-jr-. In this blog, we will learn that how to zip and unzip your file or folder programmatically. When I use java. ZipOutputStream uses an instance of this class when creating an entry in a Zip file. ZipEntry represents a zip file entry. Assalamualaykum Wr BrToday we explore Ionic files. The reason for this is in examining ZipOutputStream source, the LOCEXT header is being written at the end of the data, however the ZipInputStream isn't accessing the information. ZipInputStream - This class implements an input stream filter for reading files in the ZIP file format. The above code has to be altered as shown below to get the correct. zip package – where we can. ZipInputStreamを使ってZipファイル. Don't worry about ZipEntry. Thus, if you're scanning through a JAR file, the only way to objtain the size, csize and crc for a ZipEntry is to look at the CEN info, via ZipFile. Closes the current entry if still active. I am trying zip files without using any third party dlls. Read ZIP file with “ZipInputStream” Get the files to “ZipEntry” and output it to “FileOutputStream“ 1. Active 4 years, 3 months ago. java under the java. View Notes - Zipoutstream in java from CSC 1001 at Ahmednagar Zilla Maratha Vidya Prasarak Samajs New Arts Commerce & Science. com "Java Source Code Warehouse" project. ZipInputStream and java. We will be performing a simple operation to zip a single file into an archive. " "Could you give me an example of how it works?" "Of course. 最近在看java se 的IO 部分 , 看到 java 的文件的压缩和解压比较有意思,主要用到了两个IO流-ZipInputStream, ZipOutputStream,不仅可以对文件进行压缩,还可以对文件夹进行压缩和解压。. 5: 6: GNU. IOUtils provides a tested utility to copy between input and output streams, add commons-compress to you classpath, for example using gradle. ZipInputStream extends java. You need to create a zip entry for each file you are. When setting the mode to Never, putNextEntry(org. Then these zipentries are read and transferred to corresponding new files. We can easily create these wrappers using system. In regards to question 1, nothing forces you to use files when you use ZipInputStream and ZipOutputStream. See bug 4129445 for more details. This class provides an API where you can iterate over all the items in a given zip file, reading the data from the archive for each file. In this article, we will discuss few commonly used Java Zip utility methods. Use ZipEntry#setMethod or #setMethod with the ZipEntry#STORED flag. ZipInputStream // ZipInputStreamクラスを使用してZipファイルの解凍. class ZipManipulationException. Filter by API Level: Package Index | Class Index. ZipInputStream. Send Multiple Files over a single Socket Connnection This post will explain the a sample implementation to send a folder over a Socket and read the same on the Client. Here is an example of reading a text file and writing it out to a ZipOutputStream. The function renames the existing zip file to a temporary. There may be situations that we need exactly one instance of a class to perform some functionalities. You may have to register or Login before you can post: click the register link above to proceed. The following code examples are extracted from open source projects. ZipInputStream is the basic class for reading zip entries in a zip file. We'll also present two useful example programs that build on what you have just learned about streams and files. A sample program of ZipOutputStream and ZipInputStream. I have experience of about 6 years in SAP PI/PO/CPI. Decompress ZIP file example. A ZipOutputStream inherits IOExtras::AbstractOutputStream in order to provide an IO-like interface for writing to a single zip entry. This Java example shows how create zip file from directory using Java ZipOutputStream class. Although InflaterInputStream can only read compressed ZIP archive entries, this class can read non-compressed entries as well. ServletOutputStreamで フィルタリングして作成することで、一時ファイルを作成せずに、 そのままレスポンスにファイルを流しこ…. Used to read (decompress) the data from zip files. Create ZipInputStream object with FileInputStream object. 肿么将一个ZipInputStream的ZipEntry转换成byte zip压缩文件结构、ZipInputStream和ZipOutputStream三个Java. getNextEntry() you get a fresh stream to read the content of your entry from. Use a FileInputStream to read the ZIP file and a ByteArrayOutputStream to write its contents to. , a servlet output stream). If I had only one report to display, I could display it in the browser and the client could save it locally. 经常可以看见各种压缩文件:zip、jar、GZ、 正常情况下在IO 操作中,所有的类库都是在 IO 包中。 在实例化ZipEntry 的时候,要设置名称,此名称实际上就是压缩文件中每一个元素的名称。 1. Jan 22, 2010. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. ZipInputStream and ZipOutputStream are used for reading/writing entries from/to a zip file. Use ByteArrayInputStream and FileOutputStream to reverse the process. The SAVEZIP utility. In this example, it will read a ZIP file from "C:\\MyFile. This usually is true, but it is not required. zip‘ package to compress and decompress the data In the below example we are using ZipOutputStream Class for output stream filter for writing files in the ZIP file format, ZipEntry Class to represent the Zip file entry and ZipInputStream Class for input stream filter for reading files in the ZIP file format. ZipOutputStream object allows to choose the desired compression level. Closes the current entry if still active. A few months back, in my ASP. zip' with some class to do this. This article will help you to compress files in ZIP format and create its new ZIP file. A ZIP archive is a collection of (possibly) compressed files. ZipInputStream will not read Zip file comments. 1、了解压缩流的主要作用 2、了解JAVA IO 支持的三种压缩格式 3、掌握ZipOutputStream、ZipFile、ZipInputStream 三个类的作用 具体内容 经常可以看见各种压缩文件:zip、jar、GZ、 正常情况下在IO 操作中,所有的类库都是在 IO 包中。. You can click to vote up the examples that are useful to you. ZipOutputStream class in Java This class implements an output stream filter for writing files in the ZIP file format. Đáng tiếc là thư viện này không thể đọc và giải nén các định dạng phổ biến khác như rar, hoặc 7zip. putNextEntry begins writing new zip file and sets the start point. java zipentry setmethod. Then these zipentries are read and transferred to corresponding new files. This can be a file or a directory ZipFile and ZipInputStream will give you instances of this class as information about the members in an archive. In this tutorial you will see the use of Zipentry class. putNextEntry(ZipEntry e) method begins writing a new ZIP file entry and positions the stream to the start of the entry data. The local header is read and given the flag information the archiver can see that to determine the real size the data must be read until the end of data is detected after which there is a data descriptor with the (now known) real sizes. You need to create a zip entry for each file you are. getSize() always returned -1 when the size of the zip entry was accessed. How to Zip files. We've used OutputStreams a few times on this blog to write data to files. Read zip file by FileInputStream. Zip a File. , zip files and a ZipOutputStream for writing data in a compressed format. zip) facilitating the management of ZIP archives. Welcome to the SharpDevelop Community Site! Ask your questions in the forum, hear from the team members in the blogs, read articles on SharpDevelop. There may be situations that we need exactly one instance of a class to perform some functionalities. The SAVEZIP utility. A ZipOutputStream inherits IOExtras::AbstractOutputStream in order to provide an IO-like interface for writing to a single zip entry. zip package – where we can. That's the mainstream library, the full library, and it includes all the capability. Android APIs. A ZIP archive is a collection of (possibly) compressed files. These core libraries are part of the java. ZipInputStream;. java) is included in the alvinalexander. I'd probably use [code]java. ZIP files are basically archives containing singular named "items" containing data (usually files). ZipOutputStream uses an instance of this class when creating an entry in a Zip file. ZipInputStream可以从每个条目的ZIP文件读取数据。 ZipOutputStream可以将数据写入每个条目的ZIP文件。 ZipFile是一个从ZIP文件读取条目的实用程序类。 以下代码显示如何创建ZIP文件. zip package. 84 for compressing directory's files in a zip file. ZipManipulator allows to add/remove/update files inside zip files. Returns 0 after EOF has reached for the current entry data, otherwise always return 1. ServletOutputStreamで フィルタリングして作成することで、一時ファイルを作成せずに、 そのままレスポンスにファイルを流しこ…. void putNextEntry(ZipEntry ze) writes the information in the given ZipEntry to the output stream and positions the stream for the data. ZipOutputStream is used when you want to create an archive of files. ZipInputStream will not read Zip file comments. What is Zip file, A computer file whose contents are compressed for storage or transmission. getNextEntry() you get a fresh stream to read the content of your entry from. It accepts an OutputStream object in the constructor ZipOutputStream(OutputStream out); The putNextEntry() method allows to append a file at the end of the zip file. Java Code Examples for java. How to generate checksum value for for a file in java? How to compress and store objects using zip utility? How to decompress the compressed objects using zip utility? How to zip a file using ZipFile class? How to compress a file in GZip format? How to uncompress a file from GZip format?. So, it is easy to iterate all zip file entries without actual data decompression. Used to read (decompress) the data from zip files. データベースに登録されたバイナリ画像データを、zip化して出力するサンプル。 org. 2E ] Commit ID: 100470BAC8611CB294C CVSROOT: /cvs Module name: ports Changes by: [email protected] Stores a Zip local file header. I have experience of about 6 years in SAP PI/PO/CPI. Unzip using the ZipInputStream : ZipInputStream « File « Java Tutorial. ZipInputStream-- is for Reading compressed Data(Stream) ZipOutputStream-- is for creating the Zip File It takes the Stream of the Data. The ZipEntry class is used by ZipFile and ZipInputStream, which read ZIP files, and by ZipOutputStream, which writes ZIP files. A zip file (or "archive") is a collection of (possibly) compressed files. zip包里也有这两个类,不过对中文的支持不佳,文件的注释与生成的文件名都不能用中文,否则乱码,不过对文件的内容不影响。. This usually is true, but it is not required. Mar 1, 2001 Java. NET Framework has GzipStream and DeflateStream classes for compression tasks, but they do not support the standard ZIP file / folder FileEntry mechanism to zip a folder with all its files and subfolders. Bumper ZipFile/ZipEntry backport. print · java. Today I released the first version of an Oracle CLOB editor for eclipse. But it turns out that you can read and write to a ZipEntry just like a regular file. *; 32 import java. reflect ZipInputStream. ZipEntry > > While reading. zip取得ZipOutputStream. 用过jdk自带的压缩或解压想必大家都知道不支持中文 之前介绍了利用java. I'll cover the following topics in the code samples below: IsNullOrEmptyGetFileName, SeekOrigin, FileStream, EventArgs, and Recursive. I'm new to ICSharpCode. Cheers,-jr-. I would appreciate to recieve the code that does this Thanks in Advance. , a servlet output stream). By using those classes, it is possible to create a command-line version of the popular WinZip utility. See bug 4129445 for more details. Stores a Zip local file header. So simply read the stream up to the end and you have the data of your entry. ZipOutputStream(OutputStream out) creates a ZipOutputStream that you can use to write compressed data to the specified OutputStream. ZipInputStream and java. All we need to do is create wrappers for the ZipOutputStream, ZipInputStream and ZipEntry. Bumper ZipFile/ZipEntry backport. ZipInputStream will not read Zip file comments. Zip XML in memory for Web Service transport (SharpZipLib) Here is a full test program that demonstrates how to use SharpZipLib to zip an XElement into a byte array. In this tutorial you will see the use of Zipentry class. I created the xml, I can pull the images from the SQL DB and I believe they are being input into my instance of ZipOutputStream, but the problem is returning the ZipOutputStream. dll file into my project; wrote a function (in VB2005) to make my files compressed, and successfully made a zip file with small files. Java example to decompress files from a ZIP file. This code is ported from Hishidama's Java Zip File Memo. Used to read (decompress) the data from zip files. You can click to vote up the examples that are useful to you. setCrc since it and setCompressedSize get set automatically. ZipInputStream can be used only to read and extract zip files. The UTF-8 charset is used to encode the entry names and comments. The following are top voted examples for showing how to use java. 肿么将一个ZipInputStream的ZipEntry转换成byte zip压缩文件结构、ZipInputStream和ZipOutputStream三个Java. Ask the sender to remove accents from the file name. En este artículo el autor nos presenta las clases ZipInputStream, ZipOutputStream y ZipEntry del paquete java. So simply read the stream up to the end and you have the data of your entry. ZipOutPutStream - This class implements an output stream filter for writing files in the ZIP file format. Preferred way to use Java ZipOutputStream and BufferedOutputStream. ZipInputStream can be used only to read and extract zip files. AutoOpen in docm does not work anymore (OOXML word-file) Aspose. Used to read (decompress) the data from zip files. Home; import java. ZipInputStream; import java. Use ByteArrayInputStream and FileOutputStream to reverse the process. If you want to use a stream to read zip files, check out the ZipInputStream class. ### 1999-09-09. В ZipOutputStream нужно записать все остальное содержимое, которое было вычитано из ZipInputStream. But it turns out that you can read and write to a ZipEntry just like a regular file. The process is exactly opposite. ZipOutputStream. ZipFile accepts a file/file name and uses random access to jump between file positions. Code for Ziping Directories /// /// Zip the complete directory with its complete subfolders /// /// Complete path of the directory to zip /// complete file path for the zipped file. Eventually the top level task will gather data on the timer due date and repeat value, pass it on the the action class which takes that information and creates a process definition, instantiates the procdef and starts it. I'll put something together for you - while I'm doing that though someone else might get a complete solution for you sooner. ZipOutputStream public ZipOutputStream(OutputStream out) Creates a new ZIP output stream. 这个包里主要有ZipFile、 ZipOutputStream、ZipInputStream和ZipEntry这几个类。 ZipOutputStream是用来压缩文件 的,ZipInputStream和ZipFile是用来解压缩文件的,在压缩和解压缩的过程中,ZipEntry都会用到。在java的Zip压缩文件 中,每一个子文件都是一个ZipEntry对象。 来看这几个类: 1. zip với một số class để làm việc này. java怎样使用ZipOutputStream和ZipInputStream压缩和解压缩 如题想用ZipOutputStream和ZipInputStream进行压缩和解压缩,最简单的那种就行。 给个例子,太难的看懂有些困难。. import java. class ZipLocalFileHeader. Figured out my mistake Right before I load the ZipStream with the Memory Stream, I have to reset the position of the memory stream ms. It is possible to create a ZipInputStream object directly, passing the zip file name to the constructor, but more often than not the ZipInputStream will be obtained from a ZipFile (perhaps using the ZipFileSystem interface) object for a particular entry in the zip archive. 我用 ZipOutputStream 和 ZipInputStream 做一个解压缩软件,发现如果文件名里有汉字,就无法从压缩包取出文件名,请教如何解决?: rt1: 这是因为编码的问题,缺省的不能处理汉字。. java provides the 'java. I used SharpZipLib Version 0. Used to read (decompress) the data from zip files. I have a file called Template. That can understand zip coding. Preferred way to use Java ZipOutputStream and BufferedOutputStream. By using those classes, it is possible to create a command-line version of the popular WinZip utility. It has a special method to get the zip. Zip DLL following link http://www. ZipOutputStream. A few months back, in my ASP. 1) Persmissions in Manifest File. Zipファイルを解凍するだけのプログラムです。 JDK1. We can easily create these wrappers using system. While DeflaterOutputStream can write compressed zip file entries, this extension can write uncompressed entries as well. So, the architecture of an application is designed to ease the data transfer process and improve the performance. Usage is quite simple:. ZipInputStream; import java. ZipOutputStream works a little bit differently that GZIPOutputStream. 일반인인데 지갑 사진까지…. ZipInputStream stream = new ZipInputStream. ZipException: invalid entry size. Unzip using the ZipInputStream : ZipInputStream « File « Java Tutorial. Mar 1, 2001 Java. ZipOutputStream) ZipOutputStreamは素直にnewでインスタンスを作成するのだが、Ant版ではコンストラクターがちょっと違う。. ZipOutputStream (JDK 1.