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

📄 base64.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Serializes an object and returns the Base64-encoded version of that serialized object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/pdf/codec/Base64.html#encodeToFile(byte[], java.lang.String)">encodeToFile</A></B>(byte[]&nbsp;dataToEncode,             <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;filename)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenience method for encoding data to a file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static&nbsp;byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/pdf/codec/Base64.html#getAlphabet(int)">getAlphabet</A></B>(int&nbsp;options)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns one of the _SOMETHING_ALPHABET byte arrays depending on the options specified.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static&nbsp;byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/pdf/codec/Base64.html#getDecodabet(int)">getDecodabet</A></B>(int&nbsp;options)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns one of the _SOMETHING_DECODABET byte arrays depending on the options specified.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/pdf/codec/Base64.html#main(java.lang.String[])">main</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;args)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Encodes or decodes two files from the command line; <strong>feel free to delete this method (in fact you probably should) if you're embedding this code into a larger program.</strong></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/pdf/codec/Base64.html#usage(java.lang.String)">usage</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;msg)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints command line usage.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="NO_OPTIONS"><!-- --></A><H3>NO_OPTIONS</H3><PRE>public static final int <B>NO_OPTIONS</B></PRE><DL><DD>No options specified. Value is zero.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.pdf.codec.Base64.NO_OPTIONS">Constant Field Values</A></DL></DL><HR><A NAME="ENCODE"><!-- --></A><H3>ENCODE</H3><PRE>public static final int <B>ENCODE</B></PRE><DL><DD>Specify encoding.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.pdf.codec.Base64.ENCODE">Constant Field Values</A></DL></DL><HR><A NAME="DECODE"><!-- --></A><H3>DECODE</H3><PRE>public static final int <B>DECODE</B></PRE><DL><DD>Specify decoding.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.pdf.codec.Base64.DECODE">Constant Field Values</A></DL></DL><HR><A NAME="GZIP"><!-- --></A><H3>GZIP</H3><PRE>public static final int <B>GZIP</B></PRE><DL><DD>Specify that data should be gzip-compressed.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.pdf.codec.Base64.GZIP">Constant Field Values</A></DL></DL><HR><A NAME="DONT_BREAK_LINES"><!-- --></A><H3>DONT_BREAK_LINES</H3><PRE>public static final int <B>DONT_BREAK_LINES</B></PRE><DL><DD>Don't break lines when encoding (violates strict Base64 specification)<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.pdf.codec.Base64.DONT_BREAK_LINES">Constant Field Values</A></DL></DL><HR><A NAME="URL_SAFE"><!-- --></A><H3>URL_SAFE</H3><PRE>public static final int <B>URL_SAFE</B></PRE><DL><DD>Encode using Base64-like encoding that is URL- and Filename-safe as described in Section 4 of RFC3548: <a href="http://www.faqs.org/rfcs/rfc3548.html">http://www.faqs.org/rfcs/rfc3548.html</a>. It is important to note that data encoded this way is <em>not</em> officially valid Base64, or at the very least should not be called Base64 without also specifying that is was encoded using the URL- and Filename-safe dialect.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.pdf.codec.Base64.URL_SAFE">Constant Field Values</A></DL></DL><HR><A NAME="ORDERED"><!-- --></A><H3>ORDERED</H3><PRE>public static final int <B>ORDERED</B></PRE><DL><DD>Encode using the special "ordered" dialect of Base64 described here: <a href="http://www.faqs.org/qa/rfcc-1940.html">http://www.faqs.org/qa/rfcc-1940.html</a>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.pdf.codec.Base64.ORDERED">Constant Field Values</A></DL></DL><HR><A NAME="MAX_LINE_LENGTH"><!-- --></A><H3>MAX_LINE_LENGTH</H3><PRE>private static final int <B>MAX_LINE_LENGTH</B></PRE><DL><DD>Maximum line length (76) of Base64 output.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.pdf.codec.Base64.MAX_LINE_LENGTH">Constant Field Values</A></DL></DL><HR><A NAME="EQUALS_SIGN"><!-- --></A><H3>EQUALS_SIGN</H3><PRE>private static final byte <B>EQUALS_SIGN</B></PRE><DL><DD>The equals sign (=) as a byte.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.pdf.codec.Base64.EQUALS_SIGN">Constant Field Values</A></DL></DL><HR><A NAME="NEW_LINE"><!-- --></A><H3>NEW_LINE</H3><PRE>private static final byte <B>NEW_LINE</B></PRE><DL><DD>The new line character (\n) as a byte.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.pdf.codec.Base64.NEW_LINE">Constant Field Values</A></DL></DL><HR><A NAME="PREFERRED_ENCODING"><!-- --></A><H3>PREFERRED_ENCODING</H3><PRE>private static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>PREFERRED_ENCODING</B></PRE><DL><DD>Preferred encoding.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.pdf.codec.Base64.PREFERRED_ENCODING">Constant Field Values</A></DL></DL><HR><A NAME="WHITE_SPACE_ENC"><!-- --></A><H3>WHITE_SPACE_ENC</H3><PRE>private static final byte <B>WHITE_SPACE_ENC</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.pdf.codec.Base64.WHITE_SPACE_ENC">Constant Field Values</A></DL></DL><HR><A NAME="EQUALS_SIGN_ENC"><!-- --></A><H3>EQUALS_SIGN_ENC</H3><PRE>private static final byte <B>EQUALS_SIGN_ENC</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.pdf.codec.Base64.EQUALS_SIGN_ENC">Constant Field Values</A></DL></DL><HR><A NAME="_STANDARD_ALPHABET"><!-- --></A><H3>_STANDARD_ALPHABET</H3><PRE>private static final byte[] <B>_STANDARD_ALPHABET</B></PRE><DL><DD>The 64 valid Base64 values.<P><DL></DL></DL><HR><A NAME="_STANDARD_DECODABET"><!-- --></A><H3>_STANDARD_DECODABET</H3><PRE>private static final byte[] <B>_STANDARD_DECODABET</B></PRE><DL><DD>Translates a Base64 value to either its 6-bit reconstruction value or a negative number indicating some other meaning.<P><DL></DL></DL><HR><A NAME="_URL_SAFE_ALPHABET"><!-- --></A><H3>_URL_SAFE_ALPHABET</H3><PRE>private static final byte[] <B>_URL_SAFE_ALPHABET</B></PRE><DL><DD>Used in the URL- and Filename-safe dialect described in Section 4 of RFC3548: <a href="http://www.faqs.org/rfcs/rfc3548.html">http://www.faqs.org/rfcs/rfc3548.html</a>. Notice that the last two bytes become "hyphen" and "underscore" instead of "plus" and "slash."<P><DL></DL></DL><HR><A NAME="_URL_SAFE_DECODABET"><!-- --></A><H3>_URL_SAFE_DECODABET</H3><PRE>private static final byte[] <B>_URL_SAFE_DECODABET</B></PRE><DL><DD>Used in decoding URL- and Filename-safe dialects of Base64.<P><DL></DL></DL><HR><A NAME="_ORDERED_ALPHABET"><!-- --></A><H3>_ORDERED_ALPHABET</H3><PRE>private static final byte[] <B>_ORDERED_ALPHABET</B></PRE><DL><DD>I don't get the point of this technique, but it is described here: <a href="http://www.faqs.org/qa/rfcc-1940.html">http://www.faqs.org/qa/rfcc-1940.html</a>.<P>

⌨️ 快捷键说明

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