Next: , Up: I18N.EncodedStream   [Index]

5.2.1 I18N.EncodedStream class: initializing


Initialize the registry of the encoders to include the standard encoders contained in the library.

registerEncoderFor: arrayOfAliases toUTF32: toUTF32Class fromUTF32: fromUTF32Class

Register the two classes that will respectively convert from the charsets in arrayOfAliases to UTF-32 and vice versa.

The former class is a stream that accepts characters and returns (via #next) integers representing UTF-32 character codes, while the latter accepts UTF-32 character codes and converts them to characters. For an example see respectively FromUTF7 and ToUTF7 (I admit it is not a trivial example).