commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tobr...@transolutions.net (O'brien, Tim)
Subject RE: [codec] Base64 API
Date Thu, 03 Apr 2003 01:10:50 GMT
Static encoding and decoding functions follow the pattern,
encode<algorithm>, decode<algorithm>.  So is done to avoid a conflict with
the Encoder, Decoder, BinaryEncoder, and BinaryDecoder interfaces.


--------
Tim O'Brien


> -----Original Message-----
> From: Gary Gregory [mailto:ggregory@seagullsw.com] 
> Sent: Wednesday, April 02, 2003 6:04 PM
> To: 'Jakarta Commons Developers List'
> Subject: [codec] Base64 API
> 
> 
> Hello,
> 
> It seems ponderous to write:
> 
> byte b1[] = Base64.encodeBase64(commArea);
> byte b2[] = Base64.decodeBase64(commArea);
> 
> Why not simply:
> 
> byte b1[] = Base64.encode(commArea);
> byte b2[] = Base64.decode(commArea);
> 
> After all the Base64 class will not have other ??codeBase* methods.
> 
> Gary
> 



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


Mime
View raw message