Example #1
0
 /**
  * Decode the base 64 encoded string writing it to the given output stream. Whitespace characters
  * will be ignored.
  *
  * @param data Base 64 encoded data.
  * @param out Stream to write the data to.
  * @return The number of bytes produced.
  * @throws java.io.IOException
  */
 public static int decodeData(String data, OutputStream out) throws IOException {
   return encoder.decode(data, out);
 }
Example #2
0
 /**
  * Decode the base 64 encoded data writing it to the given output stream. Whitespace characters
  * will be ignored.
  *
  * @param data Base 64 encoded data.
  * @param out Stream to write the data to.
  * @return The number of bytes produced.
  * @throws java.io.IOException
  */
 public static int decodeData(byte[] data, OutputStream out) throws IOException {
   return encoder.decode(data, 0, data.length, out);
 }