com.sun.syndication.io
インタフェース WireFeedParser

既知の実装クラスの一覧:
Atom03Parser, Atom10Parser, BaseWireFeedParser, RSS090Parser, RSS091NetscapeParser, RSS091UserlandParser, RSS092Parser, RSS093Parser, RSS094Parser, RSS10Parser, RSS20Parser, RSS20wNSParser

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.


メソッドの概要
 java.lang.String getType()
          Returns the type of feed the parser handles.
 boolean isMyType(Document document)
          Inspects an XML Document (JDOM) to check if it can parse it.
 WireFeed parse(Document document, boolean validate)
          Parses an XML document (JDOM Document) into a feed bean.
 

メソッドの詳細

getType

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

戻り値:
the type of feed the parser handles.
関連項目:
for details on the format of this string.


isMyType

boolean isMyType(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.

パラメータ:
document - XML Document (JDOM) to check if it can be parsed by this parser.
戻り値:
true if the parser know how to parser this feed, false otherwise.

parse

WireFeed parse(Document document,
               boolean validate)
               throws java.lang.IllegalArgumentException,
                      FeedException
Parses an XML document (JDOM Document) into a feed bean.

パラメータ:
document - XML document (JDOM) to parse.
validate - indicates if the feed should be strictly validated (NOT YET IMPLEMENTED).
戻り値:
the resulting feed bean.
例外:
java.lang.IllegalArgumentException - thrown if the parser cannot handle the given feed type.
FeedException - thrown if a feed bean cannot be created out of the XML document (JDOM).