> > The codec package is very simple. Right now it contains 3 encoders > > specifically geared towards language ( Soundex, RefinedSoundex, and > > Metaphone ). It also contains a Base64 encoder and decoder. > > > > There is only one interface "Encoder" with one method "public > > String encode(String pString)". I think we need another interface > > "Decoder", with a similarly simple interface "public String decode(String > > pString)".
Hmm, I see a couple of issues with this. 1) It encodes chunks, and not streams. This is a scalability issue. 2) It is geared towards text. For Bootstring, I need arbitrary symbols. 3) There is no need for another interface with identical signatures. Maybe a Codec class that points out two "coders" (one encoder and one decoder). For the short term, I think that a Punycode codec will do, and I will of course use Encoder as you have put it. /O -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>