Re: Overlap between StreamReader and FileReader

On Tue, Jul 30, 2013 at 5:16 AM, Jonas Sicking <jonas@sicking.cc> wrote:

> Couldn't we simply let the Stream class have a content type, which
>

That's what I meant. In Feras's proposal Stream has type attribute. I
copied it to my draft. read(As)Text would use it.


> could contain an encoding. Then when stream.readText is called, if
> there's an explicit encoding, it would use that encoding when
>

Do you think it should also have overrideMimeType like XHR?


> converting to text.
>

Received on Tuesday, 30 July 2013 02:53:36 UTC