excel.util
类 Base64Coder

java.lang.Object
  继承者 excel.util.Base64Coder

public class Base64Coder
extends java.lang.Object


构造函数摘要
Base64Coder()
           
 
方法摘要
static byte[] decode(char[] in)
          Decodes Base64 data.
static java.lang.String decode(java.lang.String s)
          Decodes a Base64 string.
static char[] encode(byte[] in)
          Encodes a byte array into Base64 format.
static char[] encode(byte[] in, int length)
           
static java.lang.String encode(java.lang.String s)
          Encodes a string into Base64 format.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造函数详细信息

Base64Coder

public Base64Coder()
方法详细信息

encode

public static java.lang.String encode(java.lang.String s)
Encodes a string into Base64 format. No blanks or line breaks are inserted.

参数:
s - a String to be encoded.
返回:
A String with the Base64 encoded data.

encode

public static char[] encode(byte[] in)
Encodes a byte array into Base64 format. No blanks or line breaks are inserted.

参数:
in - an array containing the data bytes to be encoded.
返回:
A character array with the Base64 encoded data.

encode

public static char[] encode(byte[] in,
                            int length)

decode

public static java.lang.String decode(java.lang.String s)
Decodes a Base64 string.

参数:
s - a Base64 String to be decoded.
返回:
A String containing the decoded data.
抛出:
java.lang.IllegalArgumentException - if the input is not valid Base64 encoded data.

decode

public static byte[] decode(char[] in)
Decodes Base64 data. No blanks or line breaks are allowed within the Base64 encoded data.

参数:
in - a character array containing the Base64 encoded data.
返回:
An array containing the decoded data bytes.
抛出:
java.lang.IllegalArgumentException - if the input is not valid Base64 encoded data.