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

📄 deflater.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
setInput</H3><PRE>public void <B>setInput</B>(byte[]&nbsp;b)</PRE><DL><DD>Sets input data for compression. This should be called whenever needsInput() returns true indicating that more input data is required.<DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - the input data bytes<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/Deflater.html#needsInput()"><CODE>needsInput()</CODE></A></DL></DD></DL><HR><A NAME="setDictionary(byte[], int, int)"><!-- --></A><H3>setDictionary</H3><PRE>public void <B>setDictionary</B>(byte[]&nbsp;b,                          int&nbsp;off,                          int&nbsp;len)</PRE><DL><DD>Sets preset dictionary for compression. A preset dictionary is used when the history buffer can be predetermined. When the data is later uncompressed with Inflater.inflate(), Inflater.getAdler() can be called in order to get the Adler-32 value of the dictionary required for decompression.<DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - the dictionary data bytes<DD><CODE>off</CODE> - the start offset of the data<DD><CODE>len</CODE> - the length of the data<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/Inflater.html#inflate(byte[], int, int)"><CODE>Inflater.inflate(byte[], int, int)</CODE></A>, <A HREF="../../../java/util/zip/Inflater.html#getAdler()"><CODE>Inflater.getAdler()</CODE></A></DL></DD></DL><HR><A NAME="setDictionary(byte[])"><!-- --></A><H3>setDictionary</H3><PRE>public void <B>setDictionary</B>(byte[]&nbsp;b)</PRE><DL><DD>Sets preset dictionary for compression. A preset dictionary is used when the history buffer can be predetermined. When the data is later uncompressed with Inflater.inflate(), Inflater.getAdler() can be called in order to get the Adler-32 value of the dictionary required for decompression.<DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - the dictionary data bytes<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/Inflater.html#inflate(byte[], int, int)"><CODE>Inflater.inflate(byte[], int, int)</CODE></A>, <A HREF="../../../java/util/zip/Inflater.html#getAdler()"><CODE>Inflater.getAdler()</CODE></A></DL></DD></DL><HR><A NAME="setStrategy(int)"><!-- --></A><H3>setStrategy</H3><PRE>public void <B>setStrategy</B>(int&nbsp;strategy)</PRE><DL><DD>Sets the compression strategy to the specified value.<DD><DL><DT><B>Parameters:</B><DD><CODE>strategy</CODE> - the new compression strategy<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the compression strategy 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 current compression level to the specified value.<DD><DL><DT><B>Parameters:</B><DD><CODE>level</CODE> - the new 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="needsInput()"><!-- --></A><H3>needsInput</H3><PRE>public boolean <B>needsInput</B>()</PRE><DL><DD>Returns true if the input data buffer is empty and setInput() should be called in order to provide more input.<DD><DL><DT><B>Returns:</B><DD>true if the input data buffer is empty and setInput() should be called in order to provide more input</DL></DD></DL><HR><A NAME="finish()"><!-- --></A><H3>finish</H3><PRE>public void <B>finish</B>()</PRE><DL><DD>When called, indicates that compression should end with the current contents of the input buffer.</DL><HR><A NAME="finished()"><!-- --></A><H3>finished</H3><PRE>public boolean <B>finished</B>()</PRE><DL><DD>Returns true if the end of the compressed data output stream has been reached.<DD><DL><DT><B>Returns:</B><DD>true if the end of the compressed data output stream has been reached</DL></DD></DL><HR><A NAME="deflate(byte[], int, int)"><!-- --></A><H3>deflate</H3><PRE>public int <B>deflate</B>(byte[]&nbsp;b,                   int&nbsp;off,                   int&nbsp;len)</PRE><DL><DD>Fills specified buffer with compressed data. Returns actual number of bytes of compressed data. A return value of 0 indicates that needsInput() should be called in order to determine if more input data is required.<DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - the buffer for the compressed data<DD><CODE>off</CODE> - the start offset of the data<DD><CODE>len</CODE> - the maximum number of bytes of compressed data<DT><B>Returns:</B><DD>the actual number of bytes of compressed data</DL></DD></DL><HR><A NAME="deflate(byte[])"><!-- --></A><H3>deflate</H3><PRE>public int <B>deflate</B>(byte[]&nbsp;b)</PRE><DL><DD>Fills specified buffer with compressed data. Returns actual number of bytes of compressed data. A return value of 0 indicates that needsInput() should be called in order to determine if more input data is required.<DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - the buffer for the compressed data<DT><B>Returns:</B><DD>the actual number of bytes of compressed data</DL></DD></DL><HR><A NAME="getAdler()"><!-- --></A><H3>getAdler</H3><PRE>public int <B>getAdler</B>()</PRE><DL><DD>Returns the ADLER-32 value of the uncompressed data.<DD><DL><DT><B>Returns:</B><DD>the ADLER-32 value of the uncompressed data</DL></DD></DL><HR><A NAME="getTotalIn()"><!-- --></A><H3>getTotalIn</H3><PRE>public int <B>getTotalIn</B>()</PRE><DL><DD>Returns the total number of bytes input so far.<DD><DL><DT><B>Returns:</B><DD>the total number of bytes input so far</DL></DD></DL><HR><A NAME="getTotalOut()"><!-- --></A><H3>getTotalOut</H3><PRE>public int <B>getTotalOut</B>()</PRE><DL><DD>Returns the total number of bytes output so far.<DD><DL><DT><B>Returns:</B><DD>the total number of bytes output so far</DL></DD></DL><HR><A NAME="reset()"><!-- --></A><H3>reset</H3><PRE>public void <B>reset</B>()</PRE><DL><DD>Resets deflater so that a new set of input data can be processed. Keeps current compression level and strategy settings.</DL><HR><A NAME="end()"><!-- --></A><H3>end</H3><PRE>public void <B>end</B>()</PRE><DL><DD>Closes the compressor and discards any unprocessed input. This method should be called when the compressor is no longer being used, but will also be called automatically by the finalize() method. Once this method is called, the behavior of the Deflater object is undefined.</DL><HR><A NAME="finalize()"><!-- --></A><H3>finalize</H3><PRE>protected void <B>finalize</B>()</PRE><DL><DD>Closes the compressor when garbage is collected.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#finalize()">finalize</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.lang.Object</CODE></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/Throwable.html">Throwable</A></CODE> - the <code>Exception</code> raised by this method</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/Deflater.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/CRC32.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/util/zip/DeflaterOutputStream.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Deflater.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 + -