[e-lang] Joe-E ByteArray stream interface and character encoding/decoding
daw at cs.berkeley.edu
Tue Oct 16 13:53:28 EDT 2007
Adrian Mettler writes:
>Here are the proposed implementations for stream adapter logic in
>ByteArray and character encoding/decoding routines to and from ASCII and
>UTF-8 in Joe-E. Tyler suggested that I let you take a look at them and
>see if there are any unintended bugs or sources of nondeterminism.
Looks fine to me.
Out of curiousity, do we need classes ASCII and UTF8 and their methods?
Would it be enough to have
public static final Charset ASCIIcharset = Charset.forName("US-ASCII");
public static final Charset UTF8charset = Charset.forName("UTF-8");
somewhere, and then tame Charset, allowing the rest of the methods to
be implemented in Joe-E rather than in trusted Joe-E libraries? This is
a tangent, not an objection to adopting these libraries, so please don't
let it stop you from adopting these proposed implementations; I'm just
More information about the e-lang