commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Rabung <adamrab...@gmail.com>
Subject Commons Codec: base64 "strict" mode?
Date Thu, 03 Dec 2009 17:05:21 GMT
Hello,
Currently, Codec skips base64 characters that are outside of the
encode table.  I realize this is perfectly to spec, but I wonder if
other users might appreciate a "strict" mode that throws an exception
when one of these illegal characters are encountered.  For example, I
would love an exception to be thrown here:
new Base64().decode("!@#$ iHaveIllegalCharsAtBeginningAndEnd %^&"));

My apologies if I'm missing the point or if this functionality already exists,
Adam

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message