commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom van den Berge <>
Subject [codec] Proposal for improvement Hex codec
Date Thu, 15 Apr 2004 08:49:31 GMT
I'm using the Hex codec to decode e.g. the string "qq". What surprises 
me is that this obviously illegal hex value is decoded into one byte 
value 255. In fact all non-hex 'character-pairs' are decoded to value 255.

Wouldn't it be better to throw a DecoderException if illegal characters 
are passed in?

The current implementation decodes values that is is actually not able 
to decode, which is wrong.


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

View raw message