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:[EMAIL PROTECTED] > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]