eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'CharacterEncoder::InverseEncoder':

Home

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

Class: InverseEncoder (private in CharacterEncoder

This class is only visible from within CharacterEncoder.

Inheritance:

   Object
   |
   +--CharacterEncoder
      |
      +--CharacterEncoder::InverseEncoder

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

Description:


An InverseEncoder does the inverse - i.e. encode is really a decode
and decode is really an encode.

InverseEncoder is always used to encode to unicode and decode from unicode 
(see CharacterEncoder class >> #encoderToEncodeFrom:into:).


Instance protocol:

accessing
o  decoder: anEncoder

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

o  encode: aByte

o  encodeString: anEncodedStringOrByteCollection
Modified (format): / 17-01-2018 / 13:46:47 / stefan

printing
o  printOn: aStream

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

stream support
o  readNext: count charactersFrom: aStream
decode the next count bytes or characters on aStream from unicode to something else

o  readNextCharacterFrom: aStream
decode the next byte or character on aStream from unicode to something else



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:25:22 GMT