Visit Mozilla.org

nsIScriptableInputStream

From MDC

« XPCOM API Reference

Contents

[edit] Summary

The nsIScriptableInputStream interface provides scriptable access to a nsIInputStream instance.

  #include "nsIScriptableInputStream.h"

  [scriptable, uuid=(a2a32f90-9b90-11d3-a189-0050041caf44)]
  interface nsIScriptableInputStream : nsISupports { ... };

[edit] Methods

close
This method closes the nsIScriptableInputStream.
init
This method initializes the nsIScriptableInputStream.
available
This method returns the number of bytes currently available for reading from this nsIScriptableInputStream.
read
This method returns a block of data copied from the stream.

[edit] Remarks

This interface provides JavaScript with a way to read ASCII text from a nsIInputStream. However, it does not address the problem of reading arbitrary binary data from a stream. For binary input see nsIBinaryInputStream.

The Scriptable Input Stream component implements this interface.

[edit] History

This interface was frozen for Mozilla 1.2.

[edit] See Also

Scriptable Input Stream, nsIInputStream