|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.commons.feedparser.sax.RSSFeedParser
public class RSSFeedParser
| Field Summary | |
|---|---|
FeedParserListener |
listener
|
static int |
STRING_BUFFER_CAPACITY
|
| Constructor Summary | |
|---|---|
RSSFeedParser()
Create a new RSSFeedParser instance. |
|
| Method Summary | |
|---|---|
void |
beginFeedElement()
Method to call when we're finished processing this element but BEFORE processing of the next element in the chain. |
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String namespace,
String local,
String qName)
|
void |
endFeedElement()
Method to call when we're finished processing this element but AFTER processing of the next element in the chain. |
boolean |
getBoolean(String name)
|
String |
getProperty(String name)
Get the value of a string property we found whilewhile parsing |
void |
setIncludeContent(boolean includeContent)
If true we include the RAW XML content from the parser. |
void |
setNext(org.apache.commons.feedparser.sax.BaseDefaultHandler next)
Set the next template to process in this chain. |
void |
startDocument()
|
void |
startElement(String namespace,
String local,
String qName,
Attributes attributes)
|
void |
startPrefixMapping(String prefix,
String namespace)
Keep track of namespaces. |
String |
toString()
Return the value of character data forfor the element. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public FeedParserListener listener
public static int STRING_BUFFER_CAPACITY
| Constructor Detail |
|---|
public RSSFeedParser()
RSSFeedParser instance.
| Method Detail |
|---|
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXExceptionpublic void setIncludeContent(boolean includeContent)
public void setNext(org.apache.commons.feedparser.sax.BaseDefaultHandler next)
public String toString()
toString in class Objectpublic String getProperty(String name)
public boolean getBoolean(String name)
public void beginFeedElement()
throws FeedParserException
FeedParserException
public void endFeedElement()
throws FeedParserException
FeedParserException
public void startPrefixMapping(String prefix,
String namespace)
throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class DefaultHandlerSAXException
public void startElement(String namespace,
String local,
String qName,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXException
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXException
public void endElement(String namespace,
String local,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||