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