[Project_owners] How to read a stream (Problem Solved)

Michael Vincent van Rantwijk mv_van_rantwijk at yahoo.com
Wed Apr 4 12:14:04 PDT 2007


Michael Vincent van Rantwijk wrote:
> I have written a small js component which implements an 
> nsIStreamListener and now I need to know how I should read the stream 
> from within onDataAvailable.
> 
> I have looked at nsIInputStream.idl and there I found read() and 
> readSegments() but I don't know if this is what I should use, or how I 
> should use it.
> 
> p.s. the target files are XML files, not binary.
> 
> Can anyone here please help me with this?

I should have looked at nsIScriptableInputStream.idl but it was rather 
late and overlooked the [noscript] parts in nsIInputStream.idl, but 
read.nsIScriptableInputStream works...of course.


More information about the Project_owners mailing list