de.xeinfach.kafenio.util
Class Base64Codec
java.lang.Object
de.xeinfach.kafenio.util.Base64Codec
- public final class Base64Codec
- extends java.lang.Object
Description: Base64 Encoder/Decoder class.
- Author:
- Howard Kistler
|
Method Summary |
static java.lang.String |
decode(java.lang.String source)
method used to decode a base64 encoded string. |
static java.lang.String |
encode(java.lang.String source)
method used to encode a string into a base64 string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE64PAD
public static final char BASE64PAD
- See Also:
- Constant Field Values
LINEFEED
public static final char LINEFEED
- See Also:
- Constant Field Values
CARRIAGERETURN
public static final char CARRIAGERETURN
- See Also:
- Constant Field Values
MAXIMUMLINES
public static final int MAXIMUMLINES
- See Also:
- Constant Field Values
encode
public static java.lang.String encode(java.lang.String source)
- method used to encode a string into a base64 string.
- Parameters:
source - plain text to encode.
- Returns:
- returns the base64 encoded version of source.
decode
public static java.lang.String decode(java.lang.String source)
- method used to decode a base64 encoded string.
- Parameters:
source - the string to decode.
- Returns:
- returns the decoded base64 string.
Copyright © 2003-2004 by Karsten Pawlik. All Rights Reserved. Published under the Lesser General Public License (LGPL)