| java.lang.Object org.jfree.xml.util.Base64
Base64 | public class Base64 (Code) | | Provides encoding of raw bytes to base64-encoded characters, and
decoding of base64 characters to raw bytes.
date: 06 August 1998
modified: 14 February 2000
modified: 22 September 2000
author: Kevin Kelley (kelley@ruralnet.net) version: 1.3 |
Method Summary | |
public static byte[] | decode(char[] data) Decodes a BASE-64 encoded stream to recover the original
data. | public static char[] | encode(byte[] data) returns an array of base64-encoded characters to represent the
passed data array. | public static void | main(String[] args) Entry point. |
decode | public static byte[] decode(char[] data)(Code) | | Decodes a BASE-64 encoded stream to recover the original
data. White space before and after will be trimmed away,
but no other manipulation of the input will be performed.
As of version 1.2 this method will properly handle input
containing junk characters (newlines and the like) rather
than throwing an error. It does this by pre-parsing the
input and generating from that a count of VALID input
characters.
Parameters: data - the character data. The decoded data. |
encode | public static char[] encode(byte[] data)(Code) | | returns an array of base64-encoded characters to represent the
passed data array.
Parameters: data - the array of bytes to encode base64-coded character array. |
main | public static void main(String[] args)(Code) | | Entry point.
Parameters: args - the command line arguments. |
|
|