org.apache.commons.httpclient.util
Class Base64

java.lang.Object
  |
  +--org.apache.commons.httpclient.util.Base64

Deprecated. The commons-codec Base64 class will be used in HttpClient 2.1

public final class Base64
extends Object

Base64 encoder and decoder.

This class provides encoding/decoding methods for the Base64 encoding 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. Available at: http://www.ietf.org/rfc/rfc2045.txt

Version:
$Revision: 1.6.2.1 $ $Date: 2004/02/22 18:21:16 $
Author:
Jeffrey Rodriguez, Mike Bowler

Method Summary
(package private) static void ()
          Deprecated.  
static byte[] decode(byte[] base64Data)
          Deprecated. Decodes Base64 data into octects
static byte[] encode(byte[] binaryData)
          Deprecated. Encodes hex octects into Base64
static boolean isArrayByteBase64(byte[] arrayOctect)
          Deprecated. Return true if the specified byte array is base64
(package private) static boolean isBase64(byte octect)
          Deprecated. Return true if the specified octect is base64
static boolean isBase64(String isValidString)
          Deprecated. Return true if the specified string is base64 encoded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

static void ()
Deprecated. 

isBase64

public static boolean isBase64(String isValidString)
Deprecated. 
Return true if the specified string is base64 encoded.
Parameters:
isValidString - The string to test.
Returns:
boolean True if the string is base64.

isBase64

static boolean isBase64(byte octect)
Deprecated. 
Return true if the specified octect is base64
Parameters:
octect - The octet to test.
Returns:
boolean True if the octect is base64.

isArrayByteBase64

public static boolean isArrayByteBase64(byte[] arrayOctect)
Deprecated. 
Return true if the specified byte array is base64
Parameters:
arrayOctect - The array to test.
Returns:
boolean true if the specified byte array is base64

encode

public static byte[] encode(byte[] binaryData)
Deprecated. 
Encodes hex octects into Base64
Parameters:
binaryData - Array containing binaryData
Returns:
Base64-encoded array

decode

public static byte[] decode(byte[] base64Data)
Deprecated. 
Decodes Base64 data into octects
Parameters:
base64Data - byte array containing Base64 data
Returns:
Array containing decoded data.


Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.