nsIUnicharStreamLoader

IID:8a3eca16-167e-443d-9485-7e84ed822e95
Inherits From:nsISupports

This interface is implemented by the following components:


Constants

PRUint32 DEFAULT_SEGMENT_SIZE = 4096

Properties

readonly nsIChannel channel

The channel attribute is only valid inside the onDetermineCharset and onStreamComplete callbacks. Otherwise it will be null.

readonly ACString charset

The charset that onDetermineCharset returned, if that's been called.


Methods

void init ( nsIChannel channel , nsIUnicharStreamLoaderObserver observer , nsISupports context , PRUint32 segmentSize )

void init ( nsIChannel channel , nsIUnicharStreamLoaderObserver observer , nsISupports context , PRUint32 segmentSize )

Initializes the unichar stream loader

Arguments:
channel: the channel to read data from. This should _not_ be opened; the loader will open the channel itself.
observer: the observer to notify when a charset is needed and when the load is complete
context: an opaque context pointer
segmentSize: the size of the segments to use for the data, in bytes

References

This interface is passed as an argument to the following methods:

nsIUnicharStreamLoaderObserver.onDetermineCharset, nsIUnicharStreamLoaderObserver.onStreamComplete

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com