|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.io.parser.rss.RSSParser
public class RSSParser
Parses an RSS XML input stream. It supports 3 different forms of RSS:
RSSChannel
object representing the RSS data.
Constructor Summary | ||
---|---|---|
RSSParser()
Constructs an RSSParser . |
Method Summary | ||
---|---|---|
RSSChannel |
parseRSS(InputStream is,
int numItemsToParse)
Parses the InputStream of an RSS XML document, and returns a
the data in a RSSChannel . |
|
void |
parseRSS(InputStream is,
int numItemsToParse,
RSSEventListener listener,
boolean needSynchronized)
Parses the InputStream of an RSS XML document, and notifies the listener of RSS events. |
|
void |
stopRSSParser()
Stops this RSSParser . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RSSParser()
RSSParser
.
Method Detail |
---|
public RSSChannel parseRSS(InputStream is, int numItemsToParse) throws ParserConfigurationException, SAXException, IOException
InputStream
of an RSS XML document, and returns a
the data in a RSSChannel
.
is
- The InputStream
for the RSS XML document.numItemsToParse
- The number of the items to parse. If numItemsToParse
is greater than 0, all items in the channel will be parsed.
RSSChannel
.
ParserConfigurationException
SAXException
IOException
public void parseRSS(InputStream is, int numItemsToParse, RSSEventListener listener, boolean needSynchronized)
InputStream
of an RSS XML document, and notifies the listener of RSS events.
is
- The InputStream
for the RSS XML document.numItemsToParse
- The number of the items to parse. If numItemsToParse
is greater than 0, all items in the channel will be parsed.listener
- The RSSEventListener
implmentation to receive an RSSEvent
.needSynchronized
- true
if this should execute in the main event loop; otherwise false
.public void stopRSSParser()
RSSParser
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.