binarycodec.html
来自「JSP建站必须文件commons-codec-1.3.zip」· HTML 代码 · 共 738 行 · 第 1/3 页
HTML
738 行
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/binary/BinaryCodec.html#decode(java.lang.Object)">decode</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> ascii)</CODE>
<BR>
Decodes a byte array where each byte represents an ascii '0' or '1'.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/binary/BinaryCodec.html#encode(byte[])">encode</A></B>(byte[] raw)</CODE>
<BR>
Converts an array of raw binary data into an array of ascii 0 and 1 characters.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/binary/BinaryCodec.html#encode(java.lang.Object)">encode</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> raw)</CODE>
<BR>
Converts an array of raw binary data into an array of ascii 0 and 1 chars.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/binary/BinaryCodec.html#fromAscii(byte[])">fromAscii</A></B>(byte[] ascii)</CODE>
<BR>
Decodes a byte array where each byte represents an ascii '0' or '1'.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/binary/BinaryCodec.html#fromAscii(char[])">fromAscii</A></B>(char[] ascii)</CODE>
<BR>
Decodes a byte array where each char represents an ascii '0' or '1'.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/binary/BinaryCodec.html#toAsciiBytes(byte[])">toAsciiBytes</A></B>(byte[] raw)</CODE>
<BR>
Converts an array of raw binary data into an array of ascii 0 and 1 character bytes - each byte is a truncated char.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static char[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/binary/BinaryCodec.html#toAsciiChars(byte[])">toAsciiChars</A></B>(byte[] raw)</CODE>
<BR>
Converts an array of raw binary data into an array of ascii 0 and 1 characters.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/binary/BinaryCodec.html#toAsciiString(byte[])">toAsciiString</A></B>(byte[] raw)</CODE>
<BR>
Converts an array of raw binary data into a String of ascii 0 and 1 characters.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/commons/codec/binary/BinaryCodec.html#toByteArray(java.lang.String)">toByteArray</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> ascii)</CODE>
<BR>
Decodes a String where each char of the String represents an ascii '0' or '1'.</TD>
</TR>
</TABLE>
<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">
<TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="EMPTY_CHAR_ARRAY"><!-- --></A><H3>
EMPTY_CHAR_ARRAY</H3>
<PRE>
private static final char[] <B>EMPTY_CHAR_ARRAY</B></PRE>
<DL>
<DD>Empty char array.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="EMPTY_BYTE_ARRAY"><!-- --></A><H3>
EMPTY_BYTE_ARRAY</H3>
<PRE>
private static final byte[] <B>EMPTY_BYTE_ARRAY</B></PRE>
<DL>
<DD>Empty byte array.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="BIT_0"><!-- --></A><H3>
BIT_0</H3>
<PRE>
private static final int <B>BIT_0</B></PRE>
<DL>
<DD>Mask for bit 0 of a byte.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.codec.binary.BinaryCodec.BIT_0">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BIT_1"><!-- --></A><H3>
BIT_1</H3>
<PRE>
private static final int <B>BIT_1</B></PRE>
<DL>
<DD>Mask for bit 1 of a byte.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.codec.binary.BinaryCodec.BIT_1">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BIT_2"><!-- --></A><H3>
BIT_2</H3>
<PRE>
private static final int <B>BIT_2</B></PRE>
<DL>
<DD>Mask for bit 2 of a byte.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.codec.binary.BinaryCodec.BIT_2">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BIT_3"><!-- --></A><H3>
BIT_3</H3>
<PRE>
private static final int <B>BIT_3</B></PRE>
<DL>
<DD>Mask for bit 3 of a byte.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.codec.binary.BinaryCodec.BIT_3">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BIT_4"><!-- --></A><H3>
BIT_4</H3>
<PRE>
private static final int <B>BIT_4</B></PRE>
<DL>
<DD>Mask for bit 4 of a byte.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.codec.binary.BinaryCodec.BIT_4">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BIT_5"><!-- --></A><H3>
BIT_5</H3>
<PRE>
private static final int <B>BIT_5</B></PRE>
<DL>
<DD>Mask for bit 5 of a byte.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.codec.binary.BinaryCodec.BIT_5">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BIT_6"><!-- --></A><H3>
BIT_6</H3>
<PRE>
private static final int <B>BIT_6</B></PRE>
<DL>
<DD>Mask for bit 6 of a byte.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.codec.binary.BinaryCodec.BIT_6">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BIT_7"><!-- --></A><H3>
BIT_7</H3>
<PRE>
private static final int <B>BIT_7</B></PRE>
<DL>
<DD>Mask for bit 7 of a byte.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.codec.binary.BinaryCodec.BIT_7">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BITS"><!-- --></A><H3>
BITS</H3>
<PRE>
private static final int[] <B>BITS</B></PRE>
<DL>
<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">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="BinaryCodec()"><!-- --></A><H3>
BinaryCodec</H3>
<PRE>
public <B>BinaryCodec</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?