19 Aug
2004
19 Aug
'04
1:58 p.m.
Walter Dörwald wrote:
1) The current implementation does not really support the stateful API, because trailing incomplete byte sequences lead to errors.
Correct.
2) The current file API is not really convenient for decoding when the input is not read for a stream.
I don't see this problem. It is straight-forward to come up with a file-like object that converts the data from whatever source into a stream. If it wasn't a byte stream/string eventually, there would be no way to meaningfully decode it. Regards, Martin