com.ozacc.blog.feed.impl
クラス FeedGeneratorImpl

java.lang.Object
  上位を拡張 com.ozacc.blog.feed.impl.FeedGeneratorImpl
すべての実装されたインタフェース:
FeedGenerator

public class FeedGeneratorImpl
extends Object
implements FeedGenerator

FeedGenerator インターフェースの実装クラス。

導入されたバージョン:
1.2.6
バージョン:
$Id: FeedGeneratorImpl.java 197 2005-08-10 01:43:23Z otsuka $
作成者:
Tomohiro Otsuka

フィールドの概要
static String DEFAULT_CHARSET
          デフォルトの文字コード「UTF-8」。
 
コンストラクタの概要
FeedGeneratorImpl()
          コンストラクタ。
FeedGeneratorImpl(String charset)
          使用する文字コードをセットするコンストラクタ。
 
メソッドの概要
 org.jdom.Document convertIntoJDOMDocument(Channel channel, FeedFormat rssVersion)
          ChannelをJDOM Documentに変換します。
 String convertIntoString(Channel channel, FeedFormat rssVersion)
          RSS 1.0 と ATOM 0.3 に対応しています。
 void setCharset(String charset)
          出力ファイルに使用する文字コードをセットします。
 void write(Channel channel, File file, FeedFormat rssVersion)
          RSS 1.0 と ATOM 0.3 に対応しています。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_CHARSET

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

関連項目:
定数フィールド値
コンストラクタの詳細

FeedGeneratorImpl

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


FeedGeneratorImpl

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

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

setCharset

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

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

write

public void write(Channel channel,
                  File file,
                  FeedFormat rssVersion)
           throws IOException
RSS 1.0 と ATOM 0.3 に対応しています。

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

convertIntoJDOMDocument

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

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

convertIntoString

public String convertIntoString(Channel channel,
                                FeedFormat rssVersion)
RSS 1.0 と ATOM 0.3 に対応しています。

定義:
インタフェース FeedGenerator 内の convertIntoString
パラメータ:
channel - XML文字列として出力するChannel
rssVersion - 出力されるRSSフォーマットのバージョン
戻り値:
RSS XMLの文字列
関連項目:
FeedGenerator.convertIntoString(com.ozacc.blog.feed.Channel, com.ozacc.blog.feed.FeedFormat)


Copyright © 2004-2006 OZACC. All Rights Reserved.