WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIBufferedInputStream

IID:616f5b48-da09-11d3-8cda-0060b0fc14a3
Inherits From:nsIInputStream

An input stream that reads ahead and keeps a buffer coming from another input stream so that fewer accesses to the underlying stream are necessary.

This interface is intended to be used as an instance. To create an object implementing this interface:

var obj = Components.classes["@mozilla.org/network/buffered-input-stream;1"].
            createInstance(Components.interfaces.nsIBufferedInputStream);

This interface is implemented by the following components:


Methods

void init ( nsIInputStream fillFromStream , PRUint32 bufferSize )

void init ( nsIInputStream fillFromStream , PRUint32 bufferSize )

Arguments:
fillFromStream: - add buffering to this stream
bufferSize: - specifies the maximum buffer size

Reference documentation is generated from Mozilla's source.