CharacterEncoder.st
changeset 11975 7b37b4dbd66f
parent 11374 1a61d6a991b9
child 12435 539c24148e90
--- a/CharacterEncoder.st	Fri Sep 18 17:35:00 2009 +0200
+++ b/CharacterEncoder.st	Fri Sep 18 17:35:11 2009 +0200
@@ -1305,6 +1305,14 @@
 
 !CharacterEncoder methodsFor:'queries'!
 
+characterSize:codePoint
+    "return the number of bytes required to encode codePoint"
+
+    ^ self subclassResponsibility
+
+    "Created: / 15-06-2005 / 15:11:04 / janfrog"
+!
+
 isNullEncoder
     ^ false
 !
@@ -1324,6 +1332,24 @@
     ^ self class userFriendlyNameOfEncoding
 ! !
 
+!CharacterEncoder methodsFor:'stream support'!
+
+readNext:arg1 charactersFrom:arg2 
+    "raise an error: must be redefined in concrete subclass(es)"
+
+    ^ self subclassResponsibility
+
+    "Created: / 16-06-2005 / 11:46:45 / masca"
+!
+
+readNextCharacterFrom:aStream
+    "raise an error: must be redefined in concrete subclass(es)"
+
+    ^ self subclassResponsibility
+
+    "Created: / 14-06-2005 / 17:02:28 / janfrog"
+! !
+
 !CharacterEncoder::CompoundEncoder class methodsFor:'documentation'!
 
 documentation
@@ -1547,7 +1573,7 @@
 !CharacterEncoder class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/CharacterEncoder.st,v 1.103 2008-11-28 18:53:43 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/CharacterEncoder.st,v 1.104 2009-09-18 15:35:11 cg Exp $'
 ! !
 
 CharacterEncoder initialize!