eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'CharacterEncoder::NullEncoder':

Home

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

Class: NullEncoder (private in CharacterEncoder

This class is only visible from within CharacterEncoder.

Inheritance:

   Object
   |
   +--CharacterEncoder
      |
      +--CharacterEncoder::NullEncoder
         |
         +--CharacterEncoder::DefaultEncoder

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

Description:


A NullEncoder does nothing.


Instance protocol:

encoding & decoding
o  decodeString: anEncodedStringOrByteCollection
(comment from inherited method)
given a string in my encoding, return a unicode-string for it

o  encodeString: aString
(comment from inherited method)
given a string in unicode, return a string or ByteArray in my encoding for it

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

Usage example(s):

     NullEncoder basicNew characterSize:$a codePoint 
     NullEncoder basicNew characterSize:16r3fe       
     NullEncoder basicNew characterSize:16r3ffe      

o  isNullEncoder

stream support
o  readNext: count charactersFrom: aStream

o  readNextCharacterFrom: aStream



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 16:09:29 GMT