Implemented by
[scriptable, uuid(9037f476-7c08-4729-b690-3e425269802b)]
interface nsIUnicharStreamLoader : nsIStreamListener
Constants
Asynchronously load a channel, converting the data to UTF-16. To use this interface, first call init() with a nsIUnicharStreamLoaderObserver that will be notified when the data has been loaded. Then call asyncOpen() on the channel with the nsIUnicharStreamLoader as the listener. The context argument in the asyncOpen() call will be passed to the onStreamComplete() callback.
const
unsigned long
DEFAULT_SEGMENT_SIZE = 4096
Attributes
The channel attribute is only valid inside the onDetermineCharset and onStreamComplete callbacks. Otherwise it will be null.
readonly attribute
nsIChannel
channel
The charset that onDetermineCharset returned, if that's been called.
readonly attribute
ACString
charset
Methods
Initializes the unichar stream loader
@param aObserver the observer to notify when a charset is needed and when
the load is complete
@param aSegmentSize the size of the segments to use for the data, in bytes
void
init(in nsIUnicharStreamLoaderObserver aObserver, in unsigned long aSegmentSize)
Compare to: