It would be nice to be able to create an input stream from a byte array in JS; but http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsIByteArrayInputStream.idl#41 is only useful from C++.
nsIByteArrayInputStream is redundant. I have wanted to remove it for some time. nsIStringInputStream is a fine replacement for C++ consumers, but it also has problems for JS consumers. It might make sense to use nsIStorageStream in conjunction with nsIBinaryOutputStream or something like that.
could nsIStringInputStream get methods like: void setData([const,array,size_is(length)]in octet data, in unsigned long length); void setStringAsUTF8(in AString string); which would make it a lot more useful from js? storage stream is a bit more complex, since you need to write your data to an outputstream first, and writing binary data to output streams requires wrapping an nsIBinaryOutputStream around it too.
mass reassigning to nobody.
Assignee: dougt → nobody
This file and interface doesn't appear to exist any more.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.