Package com.meterware.httpunit
Class Base64
java.lang.Object
com.meterware.httpunit.Base64
A utility class to convert to and from base 64 encoding.
- Author:
- Russell Gold
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Base64
public Base64()
-
-
Method Details
-
encode
Returns the base 64 encoded equivalent of a supplied string.- Parameters:
source
- the string to encode
-
decode
Returns the plaintext equivalent of a base 64-encoded string.- Parameters:
source
- a base 64 string (which must have a multiple of 4 characters)
-