com.ozacc.blog.rss
インタフェース RSSGenerator

既知の実装クラスの一覧:
RSSGeneratorImpl

public interface RSSGenerator

RSSの出力インターフェース。

導入されたバージョン:
1.0
バージョン:
$Id: RSSGenerator.java,v 1.2.2.1 2004/12/05 05:35:37 otsuka Exp $
作成者:
Tomohiro Otsuka

メソッドの概要
 org.jdom.Document convertIntoJDOMDocument(Channel channel, RSSVersion rssVersion)
          ChannelをJDOM Documentに変換します。
 Channel newChannel()
          新しいChannelインスタンスを生成します。
 void write(Channel channel, File file, RSSVersion rssVersion)
          Channelを指定されたファイルに出力します。
 

メソッドの詳細

newChannel

public Channel newChannel()
新しいChannelインスタンスを生成します。

戻り値:
新しいChannelインスタンス

write

public void write(Channel channel,
                  File file,
                  RSSVersion rssVersion)
           throws IOException
Channelを指定されたファイルに出力します。

パラメータ:
channel - 出力するChannel
file - 出力先ファイル
rssVersion - 出力されるRSSフォーマットのバージョン
例外:
IOException - ファイルの書き出しに失敗した場合

convertIntoJDOMDocument

public org.jdom.Document convertIntoJDOMDocument(Channel channel,
                                                 RSSVersion rssVersion)
ChannelをJDOM Documentに変換します。

パラメータ:
channel - 変換元のChannel
rssVersion - RSSフォーマットのバージョン
戻り値:
JDOM Document


Copyright © 2004 OZACC. All Rights Reserved.