Back: I18N.EncodedStringFactory-instance creation Up: Iconv/I18N packages Forward: I18N.Encoder class-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

5.5 I18N.Encoder

Defined in namespace I18N
Superclass: Stream
Category: i18n-Character sets
This class is the superclass of streams that take an origin and encode it to another character set. The subclasses are are for internal use unless you are writing support for your own encodings.

5.5.1 I18N.Encoder class: instance creation  (class)
5.5.2 I18N.Encoder: stream operations  (instance)


5.5.1 I18N.Encoder class: instance creation

on: aStringOrStream from: fromEncoding to: toEncoding
Answer a new encoder that translates from fromEncoding to toEncoding. The encodings are guaranteed to be those for which the encoder was registered.


5.5.2 I18N.Encoder: stream operations

atEnd
Return whether the receiver can produce another character in the receiver; by default, this is true if there is another character in the origin.

atEndOfInput
Return whether there is another character in the origin. This method is for private use by encoders, calling it outside won't corrupt the internal state of the encoder but the result probably won't be meaningful (depending on the innards of the encoder).

next
Return the next character in the receiver; by default, this is the next character in the origin.

nextInput
Return the next character in the origin. This method is for private use by encoders, calling it outside may corrupt the internal state of the encoder.

nextInputAvailable: n into: aCollection startingAt: pos
Place up to N characters from the origin in aCollection. This method is for private use by encoders, calling it outside may corrupt the internal state of the encoder.

peekInput
Return the next character in the origin without advancing it.

species
We answer a string of Characters encoded in our destination encoding.



Back: I18N.Encoder class-instance creation Up: I18N.Encoder Forward: I18N.FileStreamSegment   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on February, 22 2012 using texi2html