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.

nsIFeedProcessor

IID:8a0b2908-21b0-45d7-b14d-30df0f92afc7
Inherits From:nsIStreamListener

An nsIFeedProcessor parses feeds, triggering callbacks based on their contents.

This interface is implemented by the following components:


Properties

nsIFeedResultListener listener

The listener that will respond to feed events.


Methods

void parseAsync ( nsIRequestObserver requestObserver , nsIURI uri ) void parseFromStream ( nsIInputStream stream , nsIURI uri ) void parseFromString ( AString str , nsIURI uri )

void parseAsync ( nsIRequestObserver requestObserver , nsIURI uri )

Parse a feed asynchronously. The caller must then call the nsIFeedProcessor's nsIStreamListener methods to drive the parse. Do not call the other parse methods during an asynchronous parse.

Arguments:
requestObserver: The observer to notify on start/stop. This argument can be null.
uri: The base URI.

void parseFromStream ( nsIInputStream stream , nsIURI uri )

Parse a feed from an nsIInputStream.

Arguments:
stream: The input stream.
uri: The base URI.

void parseFromString ( AString str , nsIURI uri )

Parse a feed from a string.

Arguments:
str: The string to parse.
uri: The base URI.

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com