eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'CharacterEncoderImplementations::SingleByteEncoder':

Home

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

Class: SingleByteEncoder (in CharacterEncoderImplementations)


Inheritance:

   Object
   |
   +--CharacterEncoder
      |
      +--CharacterEncoderImplementations::FixedBytesEncoder
         |
         +--CharacterEncoderImplementations::SingleByteEncoder
            |
            +--CharacterEncoderImplementations::ASCII
            |
            +--CharacterEncoderImplementations::CP437
            |
            +--CharacterEncoderImplementations::EBCDIC
            |
            +--CharacterEncoderImplementations::ISO8859_1
            |
            +--CharacterEncoderImplementations::ISO8859_10
            |
            +--CharacterEncoderImplementations::ISO8859_11
            |
            +--CharacterEncoderImplementations::ISO8859_13
            |
            +--CharacterEncoderImplementations::ISO8859_14
            |
            +--CharacterEncoderImplementations::ISO8859_15
            |
            +--CharacterEncoderImplementations::ISO8859_16
            |
            +--CharacterEncoderImplementations::ISO8859_2
            |
            +--CharacterEncoderImplementations::ISO8859_3
            |
            +--CharacterEncoderImplementations::ISO8859_4
            |
            +--CharacterEncoderImplementations::ISO8859_5
            |
            +--CharacterEncoderImplementations::ISO8859_6
            |
            +--CharacterEncoderImplementations::ISO8859_7
            |
            +--CharacterEncoderImplementations::ISO8859_8
            |
            +--CharacterEncoderImplementations::KOI8_R
            |
            +--CharacterEncoderImplementations::MAC_Roman
            |
            +--CharacterEncoderImplementations::MS_Arabic
            |
            +--CharacterEncoderImplementations::MS_Baltic
            |
            +--CharacterEncoderImplementations::MS_CP1252
            |
            +--CharacterEncoderImplementations::MS_Cyrillic
            |
            +--CharacterEncoderImplementations::MS_EastEuropean
            |
            +--CharacterEncoderImplementations::MS_Greek
            |
            +--CharacterEncoderImplementations::MS_Hebrew
            |
            +--CharacterEncoderImplementations::MS_Symbol
            |
            +--CharacterEncoderImplementations::MS_Turkish

Package:
stx:libbasic
Category:
Collections-Text-Encodings
Version:
rev: 1.14 date: 2018/01/19 13:44:22
user: stefan
file: CharacterEncoderImplementations__SingleByteEncoder.st directory: libbasic
module: stx stc-classLibrary: libbasic
Author:
Claus Gittinger

Description:


Common abstract superclass for all single-byte encodings.


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  decodeString: anEncodedStringOrByteCollection
given a string in my encoding, return a unicode-string for it
usage example(s):
     CharacterEncoderImplementations::ISO8859_1 decodeString:'hello'

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

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  readNext: charactersToRead charactersFrom: stream

o  readNextCharacterFrom: aStream



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 19 Sep 2018 19:13:03 GMT