com.ozacc.blog.rss.informa
クラス RSSGeneratorImpl

java.lang.Object
  拡張com.ozacc.blog.rss.informa.RSSGeneratorImpl
すべての実装インタフェース:
RSSGenerator

public class RSSGeneratorImpl
extends Object
implements RSSGenerator

InformaのChannelExporterを使用して、RSSを出力します。

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

フィールドの概要
static String DEFAULT_CHARSET
          デフォルトの文字コード「UTF-8」。
protected  ChannelExporterIF exporter
           
 
コンストラクタの概要
RSSGeneratorImpl()
          コンストラクタ。
RSSGeneratorImpl(String charset)
          使用する文字コードをセットするコンストラクタ。
 
メソッドの概要
 org.jdom.Document convertIntoJDOMDocument(Channel channel, RSSVersion rssVersion)
          ChannelをJDOM Documentに変換します。
 Channel newChannel()
          新しいChannelインスタンスを生成します。
 void setCharset(String charset)
          出力ファイルに使用する文字コードをセットします。
 void write(Channel channel, File file, RSSVersion rssVersion)
          RSS 1.0とRSS 2.0の書き出しをサポートしています。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_CHARSET

public static final String DEFAULT_CHARSET
デフォルトの文字コード「UTF-8」。

関連項目:
定数フィールド値

exporter

protected ChannelExporterIF exporter
コンストラクタの詳細

RSSGeneratorImpl

public RSSGeneratorImpl()
コンストラクタ。


RSSGeneratorImpl

public RSSGeneratorImpl(String charset)
使用する文字コードをセットするコンストラクタ。

パラメータ:
charset - 出力ファイルに使用する文字コード
メソッドの詳細

setCharset

public void setCharset(String charset)
出力ファイルに使用する文字コードをセットします。

パラメータ:
charset - 出力ファイルに使用する文字コード

newChannel

public Channel newChannel()
インタフェース RSSGenerator の記述:
新しいChannelインスタンスを生成します。

定義:
インタフェース RSSGenerator 内の newChannel
戻り値:
新しいChannelインスタンス
関連項目:
RSSGenerator.newChannel()

write

public void write(Channel channel,
                  File file,
                  RSSVersion rssVersion)
           throws IOException
RSS 1.0とRSS 2.0の書き出しをサポートしています。

定義:
インタフェース RSSGenerator 内の write
パラメータ:
channel - 出力するChannel
file - 出力先ファイル
rssVersion - 出力されるRSSフォーマットのバージョン
例外:
IOException - ファイルの書き出しに失敗した場合
関連項目:
RSSGenerator.write(com.ozacc.blog.rss.Channel, java.io.File, com.ozacc.blog.rss.RSSVersion)

convertIntoJDOMDocument

public org.jdom.Document convertIntoJDOMDocument(Channel channel,
                                                 RSSVersion rssVersion)
インタフェース RSSGenerator の記述:
ChannelをJDOM Documentに変換します。

定義:
インタフェース RSSGenerator 内の convertIntoJDOMDocument
パラメータ:
channel - 変換元のChannel
rssVersion - RSSフォーマットのバージョン
戻り値:
JDOM Document
関連項目:
RSSGenerator.convertIntoJDOMDocument(com.ozacc.blog.rss.Channel, com.ozacc.blog.rss.RSSVersion)


Copyright © 2004 OZACC. All Rights Reserved.