| java.lang.Object de.schlund.pfixxml.util.Base64Utils
Base64Utils | public class Base64Utils (Code) | | Helper class for decoding/encoding bytes using the Base64 algorithm.
Therefore it uses javax.mail.internet.MimeUtility. The implementation doesn't
perform as well as other specialized low-level implementations of the
algorithm and shouldn't be used in performance critical scenarios.
author: mleidig@schlund.de |
Method Summary | |
public static byte[] | decode(String str) Decode string representation of Base64 encoded bytes. | public static String | encode(byte[] bytes, boolean withNewLines) Encode bytes using the Base64 algorithm (the linebreak after 76 signs can
be optionally removed). | public static void | main(String[] args) |
decode | public static byte[] decode(String str)(Code) | | Decode string representation of Base64 encoded bytes.
|
encode | public static String encode(byte[] bytes, boolean withNewLines)(Code) | | Encode bytes using the Base64 algorithm (the linebreak after 76 signs can
be optionally removed).
|
|
|