import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
+// FEATURE: add ASCII85Encoding (see pdf spec)
+
/** General <tt>String</tt> and <tt>byte[]</tt> processing functions,
* including Base64 and a safe filename transform.
*
public static byte[] toBase64(String data) { return toBase64(data.getBytes()); }
+ public static String toBase64String(byte[] data) { return new String(toBase64(data)); }
+
/** Encode the input data producong a base 64 encoded byte array.
* @return A byte array containing the base 64 encoded data. */
public static byte[] toBase64(byte[] data) {