Kafenio.editor 0.8.5

de.xeinfach.kafenio.util
Class Base64Codec

java.lang.Object
  extended byde.xeinfach.kafenio.util.Base64Codec

public final class Base64Codec
extends java.lang.Object

Description: Base64 Encoder/Decoder class.

Author:
Howard Kistler

Field Summary
static char BASE64PAD
           
static char CARRIAGERETURN
           
static char LINEFEED
           
static int MAXIMUMLINES
           
 
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
 

Field Detail

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
Method Detail

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.

Kafenio.editor 0.8.5

Copyright © 2003-2004 by Karsten Pawlik. All Rights Reserved. Published under the Lesser General Public License (LGPL)