commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ola Berg" <ola.b...@ports.se>
Subject Re: [codec] Handling text encodings
Date Tue, 19 Nov 2002 08:03:57 GMT
> > 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:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message