org.apache.axis.encoding.Base64.decode0()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(88)

本文整理了Java中org.apache.axis.encoding.Base64.decode0()方法的一些代码示例,展示了Base64.decode0()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Base64.decode0()方法的具体详情如下:
包路径:org.apache.axis.encoding.Base64
类名称:Base64
方法名:decode0

Base64.decode0介绍

暂无

代码示例

代码示例来源:origin: axis/axis

/**
 *
 */
public static void decode(char[] data, int off, int len, OutputStream ostream) throws IOException {
  char[] ibuf = new char[4];
  int ibufcount = 0;
  byte[] obuf = new byte[3];
  for (int i = off;  i < off+len;  i ++) {
    char ch = data[i];
    if (ch == S_BASE64PAD
      || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) {
      ibuf[ibufcount++] = ch;
      if (ibufcount == ibuf.length) {
        ibufcount = 0;
        int obufcount = decode0(ibuf, obuf, 0);
        ostream.write(obuf, 0, obufcount);
      }
    }
  }
}

代码示例来源:origin: org.apache.axis/axis

/**
 *
 */
public static void decode(char[] data, int off, int len, OutputStream ostream) throws IOException {
  char[] ibuf = new char[4];
  int ibufcount = 0;
  byte[] obuf = new byte[3];
  for (int i = off;  i < off+len;  i ++) {
    char ch = data[i];
    if (ch == S_BASE64PAD
      || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) {
      ibuf[ibufcount++] = ch;
      if (ibufcount == ibuf.length) {
        ibufcount = 0;
        int obufcount = decode0(ibuf, obuf, 0);
        ostream.write(obuf, 0, obufcount);
      }
    }
  }
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 *
 */
public static void decode(char[] data, int off, int len, OutputStream ostream) throws IOException {
  char[] ibuf = new char[4];
  int ibufcount = 0;
  byte[] obuf = new byte[3];
  for (int i = off;  i < off+len;  i ++) {
    char ch = data[i];
    if (ch == S_BASE64PAD
      || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) {
      ibuf[ibufcount++] = ch;
      if (ibufcount == ibuf.length) {
        ibufcount = 0;
        int obufcount = decode0(ibuf, obuf, 0);
        ostream.write(obuf, 0, obufcount);
      }
    }
  }
}

代码示例来源:origin: org.apache.axis/axis

/**
 *
 */
public static byte[] decode(char[] data, int off, int len) {
  char[] ibuf = new char[4];
  int ibufcount = 0;
  byte[] obuf = new byte[len/4*3+3];
  int obufcount = 0;
  for (int i = off;  i < off+len;  i ++) {
    char ch = data[i];
    if (ch == S_BASE64PAD
      || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) {
      ibuf[ibufcount++] = ch;
      if (ibufcount == ibuf.length) {
        ibufcount = 0;
        obufcount += decode0(ibuf, obuf, obufcount);
      }
    }
  }
  if (obufcount == obuf.length)
    return obuf;
  byte[] ret = new byte[obufcount];
  System.arraycopy(obuf, 0, ret, 0, obufcount);
  return ret;
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 *
 */
public static byte[] decode(char[] data, int off, int len) {
  char[] ibuf = new char[4];
  int ibufcount = 0;
  byte[] obuf = new byte[len/4*3+3];
  int obufcount = 0;
  for (int i = off;  i < off+len;  i ++) {
    char ch = data[i];
    if (ch == S_BASE64PAD
      || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) {
      ibuf[ibufcount++] = ch;
      if (ibufcount == ibuf.length) {
        ibufcount = 0;
        obufcount += decode0(ibuf, obuf, obufcount);
      }
    }
  }
  if (obufcount == obuf.length)
    return obuf;
  byte[] ret = new byte[obufcount];
  System.arraycopy(obuf, 0, ret, 0, obufcount);
  return ret;
}

代码示例来源:origin: axis/axis

/**
 *
 */
public static byte[] decode(char[] data, int off, int len) {
  char[] ibuf = new char[4];
  int ibufcount = 0;
  byte[] obuf = new byte[len/4*3+3];
  int obufcount = 0;
  for (int i = off;  i < off+len;  i ++) {
    char ch = data[i];
    if (ch == S_BASE64PAD
      || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) {
      ibuf[ibufcount++] = ch;
      if (ibufcount == ibuf.length) {
        ibufcount = 0;
        obufcount += decode0(ibuf, obuf, obufcount);
      }
    }
  }
  if (obufcount == obuf.length)
    return obuf;
  byte[] ret = new byte[obufcount];
  System.arraycopy(obuf, 0, ret, 0, obufcount);
  return ret;
}

代码示例来源:origin: axis/axis

/**
 *
 */
public static void decode(String data, OutputStream ostream) throws IOException {
  char[] ibuf = new char[4];
  int ibufcount = 0;
  byte[] obuf = new byte[3];
  for (int i = 0;  i < data.length();  i ++) {
    char ch = data.charAt(i);
    if (ch == S_BASE64PAD
      || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) {
      ibuf[ibufcount++] = ch;
      if (ibufcount == ibuf.length) {
        ibufcount = 0;
        int obufcount = decode0(ibuf, obuf, 0);
        ostream.write(obuf, 0, obufcount);
      }
    }
  }
}

代码示例来源:origin: org.apache.axis/axis

/**
 *
 */
public static void decode(String data, OutputStream ostream) throws IOException {
  char[] ibuf = new char[4];
  int ibufcount = 0;
  byte[] obuf = new byte[3];
  for (int i = 0;  i < data.length();  i ++) {
    char ch = data.charAt(i);
    if (ch == S_BASE64PAD
      || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) {
      ibuf[ibufcount++] = ch;
      if (ibufcount == ibuf.length) {
        ibufcount = 0;
        int obufcount = decode0(ibuf, obuf, 0);
        ostream.write(obuf, 0, obufcount);
      }
    }
  }
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 *
 */
public static void decode(String data, OutputStream ostream) throws IOException {
  char[] ibuf = new char[4];
  int ibufcount = 0;
  byte[] obuf = new byte[3];
  for (int i = 0;  i < data.length();  i ++) {
    char ch = data.charAt(i);
    if (ch == S_BASE64PAD
      || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) {
      ibuf[ibufcount++] = ch;
      if (ibufcount == ibuf.length) {
        ibufcount = 0;
        int obufcount = decode0(ibuf, obuf, 0);
        ostream.write(obuf, 0, obufcount);
      }
    }
  }
}

代码示例来源:origin: org.apache.axis/axis

/**
 *
 */
public static byte[] decode(String data) {
  char[] ibuf = new char[4];
  int ibufcount = 0;
  byte[] obuf = new byte[data.length()/4*3+3];
  int obufcount = 0;
  for (int i = 0;  i < data.length();  i ++) {
    char ch = data.charAt(i);
    if (ch == S_BASE64PAD
      || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) {
      ibuf[ibufcount++] = ch;
      if (ibufcount == ibuf.length) {
        ibufcount = 0;
        obufcount += decode0(ibuf, obuf, obufcount);
      }
    }
  }
  if (obufcount == obuf.length)
    return obuf;
  byte[] ret = new byte[obufcount];
  System.arraycopy(obuf, 0, ret, 0, obufcount);
  return ret;
}

代码示例来源:origin: axis/axis

/**
 *
 */
public static byte[] decode(String data) {
  char[] ibuf = new char[4];
  int ibufcount = 0;
  byte[] obuf = new byte[data.length()/4*3+3];
  int obufcount = 0;
  for (int i = 0;  i < data.length();  i ++) {
    char ch = data.charAt(i);
    if (ch == S_BASE64PAD
      || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) {
      ibuf[ibufcount++] = ch;
      if (ibufcount == ibuf.length) {
        ibufcount = 0;
        obufcount += decode0(ibuf, obuf, obufcount);
      }
    }
  }
  if (obufcount == obuf.length)
    return obuf;
  byte[] ret = new byte[obufcount];
  System.arraycopy(obuf, 0, ret, 0, obufcount);
  return ret;
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 *
 */
public static byte[] decode(String data) {
  char[] ibuf = new char[4];
  int ibufcount = 0;
  byte[] obuf = new byte[data.length()/4*3+3];
  int obufcount = 0;
  for (int i = 0;  i < data.length();  i ++) {
    char ch = data.charAt(i);
    if (ch == S_BASE64PAD
      || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) {
      ibuf[ibufcount++] = ch;
      if (ibufcount == ibuf.length) {
        ibufcount = 0;
        obufcount += decode0(ibuf, obuf, obufcount);
      }
    }
  }
  if (obufcount == obuf.length)
    return obuf;
  byte[] ret = new byte[obufcount];
  System.arraycopy(obuf, 0, ret, 0, obufcount);
  return ret;
}

相关文章

微信公众号

最新文章

更多