`
yuxiang2004
  • 浏览: 26027 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表

Base64<3>

    博客分类:
  • java
for (int i = 0, j = 0; i < (data.length() - 4); i += 4, j += 3) {                 b1 = decodingTable[data.charAt(i)];                 b2 = decodingTable[data.charAt(i + 1)];                 b3 = decodingTable[data.charAt(i + 2)];                 b4 = decodingTable[data.charAt(i + 3)];              ...

Base64<2>

    博客分类:
  • java
public static byte[] decode(byte[] data) {             byte[] bytes;             byte b1;             byte b2;             byte b3;             byte b4;             data = discardNonBase64Bytes(data);             if (data[data.length - 2] == '=') {                 bytes = new byte[(((data.length / 4) ...

Base64

    博客分类:
  • java
public class Base64 {         private static final byte[] encodingTable = {                 (byte) 'A', (byte) 'B', (byte) 'C', (byte) 'D', (byte) 'E',                 (byte) 'F', (byte) 'G', (byte) 'H', (byte) 'I', (byte) 'J',                 (byte) 'K', (byte) 'L', (byte) 'M', (byte) 'N', (byte) 'O ...
首先是转换问题:    1. //byte[]转String     2. public String getByteToString(byte[] b){     3.     String bString = new String(b);     4.     return bString;     5. }     6.      7. //String转byte[]     8. public byte[] getStringToByte(String s){     9.     byte[] b = s.getBytes();    10.     return b ...
<target name="war" depends="jar">         <copy todir="${dest.dir}/WebRoot/WEB-INF/lib">          <fileset dir="${dest.dir}">              <include name="*.jar" />          </fileset>     </copy>          ...
<!-- ====================================================================== -->     <!-- to declare the project all targets                                     -->     <!-- ====================================================================== -->     <target name="usage&quo ...
build.bat文件内容如下: java -Xms256m -Xmx512m -cp WebRoot\WEB-INF\lib\ant-1.6.5.jar;WebRoot\WEB-INF\lib\ant-launcher-1.6.5.jar;WebRoot\WEB-INF\lib\ant-nodeps-1.6.5.jar;%JAVA_HOME%\lib\tools.jar org.apache.tools.ant.Main -f build.xml war pause pause --------------------------------- build.xml <?xml versi ...
Global site tag (gtag.js) - Google Analytics