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. _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
