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

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