public class Base64Lib extends java.lang.Object implements Lib
Much of this class was derived from v2.0.1 source published by Robert Harder at http://iharder.net/base64 and placed in the public domain. Source for this package is available on request from Partner.
Copyright 1997-2006 Partner Software, Inc.
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] source,
int off,
int len)
Decodes ASCII characters in the form of a byte array.
|
static byte[] |
decode(java.lang.String s)
Decodes data from Base64 notation.
|
static java.lang.String |
encodeBytes(byte[] source)
Encodes a byte array into Base64 notation.
|
static java.lang.String |
encodeBytes(byte[] source,
int off,
int len)
Encodes a byte array into Base64 notation.
|
public static java.lang.String encodeBytes(byte[] source)
source - data to encodepublic static java.lang.String encodeBytes(byte[] source,
int off,
int len)
source - The data to convertoff - Offset in array where conversion should beginlen - Length of data to convertpublic static byte[] decode(byte[] source,
int off,
int len)
source - The Base64 encoded dataoff - The offset of where to begin decodinglen - The length of characters to decodepublic static byte[] decode(java.lang.String s)
s - the string to decode