| |
|
| java.lang.Object org.directwebremoting.util.Base64
Base64 | public class Base64 (Code) | | This class provides encode/decode for RFC 2045 Base64 as
defined by RFC 2045, N. Freed and N. Borenstein. RFC 2045:
Multipurpose Internet Mail Extensions (MIME) Part One: Format of
Internet Message Bodies. Reference 1996
author: Jeffrey Rodriguez author: Daniel Rall author: Martin Redington since: 1.0-dev |
Method Summary | |
public Object | decode(Object pObject) | public byte[] | decode(byte[] pArray) | public static byte[] | decodeBase64(byte[] base64Data) | static byte[] | discardWhitespace(byte[] data) Discards any whitespace from a base-64 encoded block.
Parameters: data - The base-64 encoded data to discard the whitespacefrom. | public Object | encode(Object pObject) | public byte[] | encode(byte[] pArray) | public static byte[] | encodeBase64(byte[] binaryData) | public static byte[] | encodeBase64(byte[] binaryData, boolean isChunked) Encodes hex octects into Base64.
Parameters: binaryData - Array containing binary data to encode. | public static byte[] | encodeBase64Chunked(byte[] binaryData) | public static boolean | isArrayByteBase64(byte[] arrayOctect) |
BASELENGTH | final static int BASELENGTH(Code) | | |
CHUNK_SEPARATOR | final static byte[] CHUNK_SEPARATOR(Code) | | |
CHUNK_SIZE | final static int CHUNK_SIZE(Code) | | |
EIGHTBIT | final static int EIGHTBIT(Code) | | |
FOURBYTE | final static int FOURBYTE(Code) | | |
LOOKUPLENGTH | final static int LOOKUPLENGTH(Code) | | |
PAD | final static byte PAD(Code) | | |
SIGN | final static int SIGN(Code) | | |
SIXBIT | final static int SIXBIT(Code) | | |
SIXTEENBIT | final static int SIXTEENBIT(Code) | | |
TWENTYFOURBITGROUP | final static int TWENTYFOURBITGROUP(Code) | | |
decodeBase64 | public static byte[] decodeBase64(byte[] base64Data)(Code) | | Decodes Base64 data into octects
Parameters: base64Data - Byte array containing Base64 data Array containing decoded data. |
discardWhitespace | static byte[] discardWhitespace(byte[] data)(Code) | | Discards any whitespace from a base-64 encoded block.
Parameters: data - The base-64 encoded data to discard the whitespacefrom. The data, less whitespace (see RFC 2045). |
encodeBase64 | public static byte[] encodeBase64(byte[] binaryData)(Code) | | |
encodeBase64 | public static byte[] encodeBase64(byte[] binaryData, boolean isChunked)(Code) | | Encodes hex octects into Base64.
Parameters: binaryData - Array containing binary data to encode. Base64-encoded data. |
encodeBase64Chunked | public static byte[] encodeBase64Chunked(byte[] binaryData)(Code) | | |
isArrayByteBase64 | public static boolean isArrayByteBase64(byte[] arrayOctect)(Code) | | |
|
|
|