📄 base64.html
字号:
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="enc_table"><!-- --></A><H3>
enc_table</H3>
<PRE>
protected static final char[] <B>enc_table</B></PRE>
<DL>
<DD>A static array that maps 6-bit integers to a specific char.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="dec_table"><!-- --></A><H3>
dec_table</H3>
<PRE>
protected static final byte[] <B>dec_table</B></PRE>
<DL>
<DD>A static array that maps ASCII code points to a 6-bit integer, or -1 for an invalid code point.
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_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>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="Base64()"><!-- --></A><H3>
Base64</H3>
<PRE>
public <B>Base64</B>()</PRE>
<DL>
<DD>Base64 decoder.
<P>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_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>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="decodeBase64(byte[])"><!-- --></A><H3>
decodeBase64</H3>
<PRE>
public byte[] <B>decodeBase64</B>(byte[] data)</PRE>
<DL>
<DD>Decodes a byte array containing base64-encoded ASCII. Characters with ASCII code points <= 32 (this includes whitespace and newlines) are ignored.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the decoded data.</DL>
</DD>
</DL>
<HR>
<A NAME="decodeBase64(java.lang.String)"><!-- --></A><H3>
decodeBase64</H3>
<PRE>
public byte[] <B>decodeBase64</B>(java.lang.String msg)
throws java.lang.IllegalArgumentException</PRE>
<DL>
<DD>Decodes a base64-encoded String. Characters with ASCII code points <= 32 (this includes whitespace and newlines) are ignored.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the decoded data.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="decode(java.lang.String)"><!-- --></A><H3>
decode</H3>
<PRE>
public java.lang.String <B>decode</B>(java.lang.String msg)
throws java.lang.IllegalArgumentException</PRE>
<DL>
<DD>Return Base64 decoded String.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>msg</CODE> -
<DT><B>Returns:</B><DD>
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="decodeBase64(byte[], int, byte, byte, byte, byte)"><!-- --></A><H3>
decodeBase64</H3>
<PRE>
public int <B>decodeBase64</B>(byte[] ret,
int ret_off,
byte a,
byte b,
byte c,
byte d)</PRE>
<DL>
<DD>Given a block of 4 encoded bytes <code>{ a, b, c, d }</code>, this method decodes up to 3 bytes of output, and stores them starting at <code>ret[ret_offset]</code>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the number of bytes converted.</DL>
</DD>
</DL>
<HR>
<A NAME="encodeBase64(java.lang.String)"><!-- --></A><H3>
encodeBase64</H3>
<PRE>
public java.lang.String <B>encodeBase64</B>(java.lang.String data)</PRE>
<DL>
<DD>Encode base64 string.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> -
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="encodeBase64(byte[])"><!-- --></A><H3>
encodeBase64</H3>
<PRE>
public java.lang.String <B>encodeBase64</B>(byte[] data)</PRE>
<DL>
<DD>Encodes <i>data</i> as a String using base64 encoding. Line breaks in the output are represented as CR LF.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the encoded string.</DL>
</DD>
</DL>
<HR>
<A NAME="bytesToCharString(byte[])"><!-- --></A><H3>
bytesToCharString</H3>
<PRE>
public java.lang.String <B>bytesToCharString</B>(byte[] retData)</PRE>
<DL>
<DD>Returns a String matching to the byte array.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="encodeAsByteArray(byte[])"><!-- --></A><H3>
encodeAsByteArray</H3>
<PRE>
public byte[] <B>encodeAsByteArray</B>(byte[] data)</PRE>
<DL>
<DD>Encodes <i>data</i> as a byte array using base64 encoding. The characters 'A'-'Z', 'a'-'z', '0'-'9', '+', '/', and '=' in the output are mapped to their ASCII code points. Line breaks in the output are represented as CR LF (codes 13 and 10).
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the encoded byte array.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../../javazoom/transfer/client/util/Conf.html" title="class in javazoom.transfer.client.util"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?javazoom/transfer/client/util/Base64.html" target="_top"><B>FRAMES</B></A>
<A HREF="Base64.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -