|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.feedparser.FeedParserImpl
public class FeedParserImpl
This FeedParser implementation is based on JDOM and Jaxen and is based around XPath and JDOM iteration. While the implementation is straight forward it has not been optimized for performance. A SAX based parser would certainly be less memory intensive but with the downside of being harder to develop.
Constructor Summary | |
---|---|
FeedParserImpl()
|
Method Summary | |
---|---|
void |
parse(FeedParserListener listener,
org.jdom.Document doc)
Parse this feed. |
void |
parse(FeedParserListener listener,
InputStream is)
Deprecated. Use #parse( FeedParserException, InputStream, String ) |
void |
parse(FeedParserListener listener,
InputStream is,
String resource)
Parse this feed. |
byte[] |
toByteArray(InputStream is)
Convert an InputStream to a byte array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeedParserImpl()
Method Detail |
---|
public void parse(FeedParserListener listener, InputStream is, String resource) throws FeedParserException
parse
in interface FeedParser
resource
- The URL of the feed being parsed. This is optional and
may be null but is used when an exception is thrown to aid debugging.
FeedParserException
public void parse(FeedParserListener listener, InputStream is) throws FeedParserException
parse
in interface FeedParser
FeedParserException
public void parse(FeedParserListener listener, org.jdom.Document doc) throws FeedParserException
parse
in interface FeedParser
FeedParserException
public byte[] toByteArray(InputStream is) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |