Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.syndication.io
Interface WireFeedParser  view WireFeedParser download WireFeedParser.java


public interface WireFeedParser

Parses an XML document (JDOM) into a feed bean.

WireFeedParser instances must thread safe.

TODO: explain how developers can plugin their own implementations.


Method Summary
 java.lang.String getType()
          Returns the type of feed the parser handles.
 boolean isMyType(org.jdom.Document document)
          Inspects an XML Document (JDOM) to check if it can parse it.
 com.sun.syndication.feed.WireFeed parse(org.jdom.Document document, boolean validate)
          Parses an XML document (JDOM Document) into a feed bean.
 

Method Detail

getType

public java.lang.String getType()
Returns the type of feed the parser handles.


isMyType

public boolean isMyType(org.jdom.Document document)
Inspects an XML Document (JDOM) to check if it can parse it.

It checks if the given document if the type of feeds the parser understands.


parse

public com.sun.syndication.feed.WireFeed parse(org.jdom.Document document,
                                               boolean validate)
                                        throws java.lang.IllegalArgumentException,
                                               FeedException
Parses an XML document (JDOM Document) into a feed bean.