⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zipoutputstream.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<HR><A NAME="EXTLEN"><!-- --></A><H3>EXTLEN</H3><PRE>public static final int <B>EXTLEN</B></PRE><DL></DL><HR><A NAME="CENVEM"><!-- --></A><H3>CENVEM</H3><PRE>public static final int <B>CENVEM</B></PRE><DL></DL><HR><A NAME="CENVER"><!-- --></A><H3>CENVER</H3><PRE>public static final int <B>CENVER</B></PRE><DL></DL><HR><A NAME="CENFLG"><!-- --></A><H3>CENFLG</H3><PRE>public static final int <B>CENFLG</B></PRE><DL></DL><HR><A NAME="CENHOW"><!-- --></A><H3>CENHOW</H3><PRE>public static final int <B>CENHOW</B></PRE><DL></DL><HR><A NAME="CENTIM"><!-- --></A><H3>CENTIM</H3><PRE>public static final int <B>CENTIM</B></PRE><DL></DL><HR><A NAME="CENCRC"><!-- --></A><H3>CENCRC</H3><PRE>public static final int <B>CENCRC</B></PRE><DL></DL><HR><A NAME="CENSIZ"><!-- --></A><H3>CENSIZ</H3><PRE>public static final int <B>CENSIZ</B></PRE><DL></DL><HR><A NAME="CENLEN"><!-- --></A><H3>CENLEN</H3><PRE>public static final int <B>CENLEN</B></PRE><DL></DL><HR><A NAME="CENNAM"><!-- --></A><H3>CENNAM</H3><PRE>public static final int <B>CENNAM</B></PRE><DL></DL><HR><A NAME="CENEXT"><!-- --></A><H3>CENEXT</H3><PRE>public static final int <B>CENEXT</B></PRE><DL></DL><HR><A NAME="CENCOM"><!-- --></A><H3>CENCOM</H3><PRE>public static final int <B>CENCOM</B></PRE><DL></DL><HR><A NAME="CENDSK"><!-- --></A><H3>CENDSK</H3><PRE>public static final int <B>CENDSK</B></PRE><DL></DL><HR><A NAME="CENATT"><!-- --></A><H3>CENATT</H3><PRE>public static final int <B>CENATT</B></PRE><DL></DL><HR><A NAME="CENATX"><!-- --></A><H3>CENATX</H3><PRE>public static final int <B>CENATX</B></PRE><DL></DL><HR><A NAME="CENOFF"><!-- --></A><H3>CENOFF</H3><PRE>public static final int <B>CENOFF</B></PRE><DL></DL><HR><A NAME="ENDSUB"><!-- --></A><H3>ENDSUB</H3><PRE>public static final int <B>ENDSUB</B></PRE><DL></DL><HR><A NAME="ENDTOT"><!-- --></A><H3>ENDTOT</H3><PRE>public static final int <B>ENDTOT</B></PRE><DL></DL><HR><A NAME="ENDSIZ"><!-- --></A><H3>ENDSIZ</H3><PRE>public static final int <B>ENDSIZ</B></PRE><DL></DL><HR><A NAME="ENDOFF"><!-- --></A><H3>ENDOFF</H3><PRE>public static final int <B>ENDOFF</B></PRE><DL></DL><HR><A NAME="ENDCOM"><!-- --></A><H3>ENDCOM</H3><PRE>public static final int <B>ENDCOM</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ZipOutputStream(java.io.OutputStream)"><!-- --></A><H3>ZipOutputStream</H3><PRE>public <B>ZipOutputStream</B>(<A HREF="../../../java/io/OutputStream.html">OutputStream</A>&nbsp;out)</PRE><DL><DD>Creates a new ZIP output stream.<DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the actual output stream</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setComment(java.lang.String)"><!-- --></A><H3>setComment</H3><PRE>public void <B>setComment</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;comment)</PRE><DL><DD>Sets the ZIP file comment.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>comment</CODE> - the comment string<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the length of the specified		  ZIP file comment is greater than 0xFFFF bytes</DL></DD></DL><HR><A NAME="setMethod(int)"><!-- --></A><H3>setMethod</H3><PRE>public void <B>setMethod</B>(int&nbsp;method)</PRE><DL><DD>Sets the default compression method for subsequent entries. This default will be used whenever the compression method is not specified for an individual ZIP file entry, and is initially set to DEFLATED.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>method</CODE> - the default compression method<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the specified compression method		  is invalid</DL></DD></DL><HR><A NAME="setLevel(int)"><!-- --></A><H3>setLevel</H3><PRE>public void <B>setLevel</B>(int&nbsp;level)</PRE><DL><DD>Sets the compression level for subsequent entries which are DEFLATED. The default setting is DEFAULT_COMPRESSION.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>level</CODE> - the compression level (0-9)<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the compression level is invalid</DL></DD></DL><HR><A NAME="putNextEntry(java.util.zip.ZipEntry)"><!-- --></A><H3>putNextEntry</H3><PRE>public void <B>putNextEntry</B>(<A HREF="../../../java/util/zip/ZipEntry.html">ZipEntry</A>&nbsp;e)                  throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Begins writing a new ZIP file entry and positions the stream to the start of the entry data. Closes the current entry if still active. The default compression method will be used if no compression method was specified for the entry, and the current time will be used if the entry has no set modification time.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the ZIP entry to be written<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/util/zip/ZipException.html">ZipException</A></CODE> - if a ZIP format error has occurred<DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - if an I/O error has occurred</DL></DD></DL><HR><A NAME="closeEntry()"><!-- --></A><H3>closeEntry</H3><PRE>public void <B>closeEntry</B>()                throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Closes the current ZIP entry and positions the stream for writing the next entry.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../java/util/zip/ZipException.html">ZipException</A></CODE> - if a ZIP format error has occurred<DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - if an I/O error has occurred</DL></DD></DL><HR><A NAME="write(byte[], int, int)"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(byte[]&nbsp;b,                  int&nbsp;off,                  int&nbsp;len)           throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes an array of bytes to the current ZIP entry data. This method will block until all the bytes are written.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/util/zip/DeflaterOutputStream.html#write(byte[], int, int)">write</A></CODE> in class <CODE><A HREF="../../../java/util/zip/DeflaterOutputStream.html">DeflaterOutputStream</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - the data to be written<DD><CODE>off</CODE> - the start offset in the data<DD><CODE>len</CODE> - the number of bytes that are written<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/util/zip/ZipException.html">ZipException</A></CODE> - if a ZIP file error has occurred<DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - if an I/O error has occurred</DL></DD></DL><HR><A NAME="finish()"><!-- --></A><H3>finish</H3><PRE>public void <B>finish</B>()            throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Finishes writing the contents of the ZIP output stream without closing the underlying stream. Use this method when applying multiple filters in succession to the same output stream.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/util/zip/DeflaterOutputStream.html#finish()">finish</A></CODE> in class <CODE><A HREF="../../../java/util/zip/DeflaterOutputStream.html">DeflaterOutputStream</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../java/util/zip/ZipException.html">ZipException</A></CODE> - if a ZIP file error has occurred<DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - if an I/O exception has occurred</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>()           throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Closes the ZIP output stream as well as the stream being filtered.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/util/zip/DeflaterOutputStream.html#close()">close</A></CODE> in class <CODE><A HREF="../../../java/util/zip/DeflaterOutputStream.html">DeflaterOutputStream</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../java/util/zip/ZipException.html">ZipException</A></CODE> - if a ZIP file error has occurred<DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - if an I/O error has occurred</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ZipOutputStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../java/util/zip/ZipInputStream.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ZipOutputStream.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -