eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'CharacterEncoder::TwoStepEncoder':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: TwoStepEncoder (private in CharacterEncoder

This class is only visible from within CharacterEncoder.

Inheritance:

   Object
   |
   +--CharacterEncoder
      |
      +--CharacterEncoder::TwoStepEncoder

Package:
stx:libbasic
Category:
Collections-Text-Encodings
Owner:
CharacterEncoder

Description:


A twoStepEncoder uses two real encoders;
to encode:
    string -> encoder1(encode) -> encoder2(encode) -> result
to decode:
    string -> encoder2(decode) -> encoder1(decode) -> result


Instance protocol:

accessing
o  encoder1: encoder1Arg encoder2: encoder2Arg
set instance variables (automatically generated)

encoding & decoding
o  decodeString: anEncodedStringOrByteCollection
Modified (format): / 17-01-2018 / 13:45:20 / stefan

o  encodeString: aString
(comment from inherited method)
given a string in unicode, return a string or ByteArray in my encoding for it

printing
o  printOn: aStream

queries
o  characterSize: charOrCodePoint
return the number of bytes required to encode codePoint

o  nameOfEncoding
encoder1 nameOfEncoding , '-' ,

stream support
o  readNext: count charactersFrom: aStream

o  readNextCharacterFrom: aStream



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 07 Oct 2024 23:05:13 GMT