|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.formats.base64.Base64Lib
public class Base64Lib
Methods for encoding and decoding to and from Base64 notation.
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.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String encodeBytes(byte[] source)
source - data to encode
public 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 convert
public 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 decode
public static byte[] decode(java.lang.String s)
s - the string to decode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||