try {
char[] cd = id.toCharArray();
ostream.write(decodeChunk(cd, 0, cd.length));
} catch (IOException ioe) {
throw new Base64Exception(new Message("BASE64_DECODE_IOEXCEPTION", LOG), ioe);
} catch (Exception e) {
LOG.warning("Invalid base64 encoded string : " + id);
throw new Base64Exception(new Message("BASE64_RUNTIME_EXCEPTION", LOG), e);
}
}