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

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.1.0.0; WebServer 1.663 at exept.de:8081; Fri, 22 Mar 2019 10:07:20 GMT