public class Base64Coder extends Object
This class is used to encode and decode data in Base64 format as described in RFC 1521.
Copyright 2003-2009 Christian d'Heureuse, Inventec Informatik AG, Zurich, Switzerland
This module is multi-licensed and may be used under the terms
of any of the following licenses:
Version history:
2003-07-22 Christian d'Heureuse (chdh): Module created.
2005-08-11 chdh: License changed from GPL to LGPL.
2009-07-16: Additional licenses (EPL/AL) added.
2009-09-16: Additional license (BSD) added.
| Constructor and Description |
|---|
Base64Coder() |
public static char[] encode(byte[] in)
in - an array containing the data bytes to be encoded.public static byte[] decode(char[] in)
in - a character array containing the Base64 encoded data.IllegalArgumentException - if the input is not valid Base64 encoded data.