commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Rabung <>
Subject Commons Codec: base64 "strict" mode?
Date Thu, 03 Dec 2009 17:05:21 GMT
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,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message