eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'CharacterEncoderImplementations::TwoByteEncoder':

Home

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

Class: TwoByteEncoder (in CharacterEncoderImplementations)


Inheritance:

   Object
   |
   +--CharacterEncoder
      |
      +--CharacterEncoderImplementations::FixedBytesEncoder
         |
         +--CharacterEncoderImplementations::TwoByteEncoder

Package:
stx:libbasic
Category:
Collections-Text-Encodings
Version:
rev: 1.12 date: 2018/01/19 13:44:37
user: stefan
file: CharacterEncoderImplementations__TwoByteEncoder.st directory: libbasic
module: stx stc-classLibrary: libbasic

Description:


abstract superclass of all two-byte encoders


Class protocol:

queries
o  isAbstract
Return if this class is an abstract class.
True is returned here; false for subclasses.
Abstract subclasses must redefine this again.

o  maxCode


Instance protocol:

encoding & decoding
o  encodeString: aUnicodeString
given a string in unicode, return a string in my encoding for it

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

o  newString: size

stream support
o  encodeCharacter: aUnicodeCharacterOrCodePoint on: aStream
given a character in unicode, encode it onto aStream.
Subclasses can redefine this to avoid allocating many new string instances.
usage example(s):
      CharacterEncoderImplementations::ISO8859_10 new encodeCharacter:260 on:Transcript
      CharacterEncoderImplementations::ISO8859_10 new encodeCharacter:$Ą  on:Transcript

o  readNextCharacterFrom: aStream



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Mon, 24 Sep 2018 21:07:14 GMT