|
Class: NullEncoder (private in CharacterEncoder
This class is only visible from within
CharacterEncoder.
Object
|
+--CharacterEncoder
|
+--CharacterEncoder::NullEncoder
|
+--CharacterEncoder::DefaultEncoder
- Package:
- stx:libbasic
- Category:
- Collections-Text-Encodings
- Owner:
- CharacterEncoder
A NullEncoder does nothing.
encoding & decoding
-
decodeString: anEncodedStringOrByteCollection
-
(comment from inherited method)
given a string in my encoding, return a unicode-string for it
-
encodeString: aString
-
(comment from inherited method)
given a string in unicode, return a string or ByteArray in my encoding for it
queries
-
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
|
-
isNullEncoder
-
stream support
-
readNext: count charactersFrom: aStream
-
-
readNextCharacterFrom: aStream
-
|