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

既知の実装クラスの一覧:
Atom03Generator, Atom10Generator, BaseWireFeedGenerator, RSS090Generator, RSS091NetscapeGenerator, RSS091UserlandGenerator, RSS092Generator, RSS093Generator, RSS094Generator, RSS10Generator, RSS20Generator

public interface WireFeedGenerator

Generates an XML document (JDOM) out of a feed for a specific real feed type.

WireFeedGenerator instances must thread safe.

TODO: explain how developers can plugin their own implementations.


メソッドの概要
 Document generate(WireFeed feed)
          Creates an XML document (JDOM) for the given feed bean.
 java.lang.String getType()
          Returns the type of feed the generator creates.
 

メソッドの詳細

getType

java.lang.String getType()
Returns the type of feed the generator creates.

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


generate

Document generate(WireFeed feed)
                  throws java.lang.IllegalArgumentException,
                         FeedException
Creates an XML document (JDOM) for the given feed bean.

パラメータ:
feed - the feed bean to generate the XML document from.
戻り値:
the generated XML document (JDOM).
例外:
java.lang.IllegalArgumentException - thrown if the type of the given feed bean does not match with the type of the WireFeedGenerator.
FeedException - thrown if the XML Document could not be created.