Object <- ASCIIDecoder |
|
|
CanDecodePart DoSeekReader InvertingEncoder |
|
DecoderPrecedence |
| Field | Type | |
|---|---|---|
| Stream: | target: | Object |
| Reader: | readerBuffer: | Buffer |
| start: | Unsigned | |
| lowPosition: | Unsigned | |
| highPosition: | Unsigned | |
| currentPosition: | Unsigned | |
| closed: | Boolean | |
| seekable: | Boolean | |
| intermittent: | Boolean | |
| PartDecoder: | contentDecoder: | Stream |
instance ASCIIDecoder tag; target: nilObject; readerBuffer: nilObject; start: 0; lowPosition: 0; highPosition: 0; currentPosition: 0; closed: false; seekable: false; intermittent: false; contentDecoder: nilObject; end instance;
Define Class ASCIIDecoder; inherits from Object; inherits from Stream, Reader; inherits from PartDecoder; inherits from TextPartDecoder; overrides DoSeekReader; // fills the buffer with 16-bit chars extended from 8-bit chars in the target stream overrides CanDecodePart; // handles text with no charset, or charset=US-ASCII // handles parts with no declared type overrides DecoderPrecedence; // returns 0x40000000 so this will be the decoder of last resort overrides InvertingEncoder; // returns an ASCIIEncoder end class;