org.apache.catalina.util
Class Base64
java.lang.Object
org.apache.catalina.util.Base64
public final class Base64
extends java.lang.Object
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
Version:
- Jeffrey Rodriguez
static byte[] | decode(byte[] base64Data) - Decodes Base64 data into octects
|
static byte[] | encode(byte[] binaryData) - Encodes hex octects into Base64.
|
static boolean | isArrayByteBase64(byte[] arrayOctect)
|
static boolean | isBase64(String isValidString)
|
static boolean | isBase64(byte octect)
|
decode
public static byte[] decode(byte[] base64Data)
Decodes Base64 data into octects
base64Data
- Byte array containing Base64 data
- Array containing decoded data.
encode
public static byte[] encode(byte[] binaryData)
Encodes hex octects into Base64.
binaryData
- Array containing binary data to encode.
- Base64-encoded data.
isArrayByteBase64
public static boolean isArrayByteBase64(byte[] arrayOctect)
isBase64
public static boolean isBase64(String isValidString)
isBase64
public static boolean isBase64(byte octect)
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.