public static void decode(char[] id, int o, int l, OutputStream ostream) throws Base64Exception { try { ostream.write(decodeChunk(id, o, l)); } catch (IOException e) { // convert exception to Base64Exception throw new Base64Exception(new Message("BASE64_RUNTIME_EXCEPTION", LOG), e); } }
public static void decode(String id, OutputStream ostream) throws Base64Exception { try { char[] cd = id.toCharArray(); ostream.write(decodeChunk(cd, 0, cd.length)); } catch (IOException e) { throw new Base64Exception(new Message("BASE64_DECODE_IOEXCEPTION", LOG), e); } }