fixed some formatting typos
[vimdoclet.git] / sample / java.util.zip.ZipOutputStream.txt
blob33aaa0f852ecd6d82b4a748f3bddea58350e371a
1 *java.util.zip.ZipOutputStream* *ZipOutputStream* This class implements an outpu
3 public class ZipOutputStream
4   extends    |java.util.zip.DeflaterOutputStream|
5   implements |java.util.zip.ZipConstants|
7 |java.util.zip.ZipOutputStream_Description|
8 |java.util.zip.ZipOutputStream_Fields|
9 |java.util.zip.ZipOutputStream_Constructors|
10 |java.util.zip.ZipOutputStream_Methods|
12 ================================================================================
14 *java.util.zip.ZipOutputStream_Fields*
15 |int_java.util.zip.ZipOutputStream.DEFLATED|
16 |int_java.util.zip.ZipOutputStream.STORED|
18 *java.util.zip.ZipOutputStream_Constructors*
19 |java.util.zip.ZipOutputStream(OutputStream)|Creates a new ZIP output stream.
21 *java.util.zip.ZipOutputStream_Methods*
22 |java.util.zip.ZipOutputStream.close()|Closes the ZIP output stream as well as 
23 |java.util.zip.ZipOutputStream.closeEntry()|Closes the current ZIP entry and po
24 |java.util.zip.ZipOutputStream.finish()|Finishes writing the contents of the ZI
25 |java.util.zip.ZipOutputStream.putNextEntry(ZipEntry)|Begins writing a new ZIP 
26 |java.util.zip.ZipOutputStream.setComment(String)|Sets the ZIP file comment.
27 |java.util.zip.ZipOutputStream.setLevel(int)|Sets the compression level for sub
28 |java.util.zip.ZipOutputStream.setMethod(int)|Sets the default compression meth
29 |java.util.zip.ZipOutputStream.write(byte[],int,int)|Writes an array of bytes t
31 *java.util.zip.ZipOutputStream_Description*
33 This class implements an output stream filter for writing files in the ZIP file 
34 format. Includes support for both compressed and uncompressed entries. 
38 *int_java.util.zip.ZipOutputStream.DEFLATED*
40 Compression method for compressed (DEFLATED) entries. 
43 *int_java.util.zip.ZipOutputStream.STORED*
45 Compression method for uncompressed (STORED) entries. 
49 *java.util.zip.ZipOutputStream(OutputStream)*
51 public ZipOutputStream(java.io.OutputStream out)
53 Creates a new ZIP output stream. 
55     out - the actual output stream 
57 *java.util.zip.ZipOutputStream.close()*
59 public void close()
60   throws |java.io.IOException|
61          
62 Closes the ZIP output stream as well as the stream being filtered. 
66 *java.util.zip.ZipOutputStream.closeEntry()*
68 public void closeEntry()
69   throws |java.io.IOException|
70          
71 Closes the current ZIP entry and positions the stream for writing the next 
72 entry. 
76 *java.util.zip.ZipOutputStream.finish()*
78 public void finish()
79   throws |java.io.IOException|
80          
81 Finishes writing the contents of the ZIP output stream without closing the 
82 underlying stream. Use this method when applying multiple filters in succession 
83 to the same output stream. 
87 *java.util.zip.ZipOutputStream.putNextEntry(ZipEntry)*
89 public void putNextEntry(java.util.zip.ZipEntry e)
90   throws |java.io.IOException|
91          
92 Begins writing a new ZIP file entry and positions the stream to the start of 
93 the entry data. Closes the current entry if still active. The default 
94 compression method will be used if no compression method was specified for the 
95 entry, and the current time will be used if the entry has no set modification 
96 time. 
99     e - the ZIP entry to be written 
101 *java.util.zip.ZipOutputStream.setComment(String)*
103 public void setComment(java.lang.String comment)
105 Sets the ZIP file comment. 
108     comment - the comment string 
110 *java.util.zip.ZipOutputStream.setLevel(int)*
112 public void setLevel(int level)
114 Sets the compression level for subsequent entries which are DEFLATED. The 
115 default setting is DEFAULT_COMPRESSION. 
118     level - the compression level (0-9) 
120 *java.util.zip.ZipOutputStream.setMethod(int)*
122 public void setMethod(int method)
124 Sets the default compression method for subsequent entries. This default will 
125 be used whenever the compression method is not specified for an individual ZIP 
126 file entry, and is initially set to DEFLATED. 
129     method - the default compression method 
131 *java.util.zip.ZipOutputStream.write(byte[],int,int)*
133 public synchronized void write(
134   byte[] b,
135   int off,
136   int len)
137   throws |java.io.IOException|
138          
139 Writes an array of bytes to the current ZIP entry data. This method will block 
140 until all the bytes are written. 
143     b - the data to be written 
144     off - the start offset in the data 
145     len - the number of bytes that are written