com.sun.syndication.io.impl
クラス RSS10Parser

java.lang.Object
  上位を拡張 com.sun.syndication.io.impl.BaseWireFeedParser
      上位を拡張 com.sun.syndication.io.impl.RSS090Parser
          上位を拡張 com.sun.syndication.io.impl.RSS10Parser
すべての実装されたインタフェース:
WireFeedParser

public class RSS10Parser
extends RSS090Parser


コンストラクタの概要
  RSS10Parser()
           
protected RSS10Parser(java.lang.String type, Namespace ns)
           
 
メソッドの概要
protected  Namespace getRSSNamespace()
          Returns the namespace used by RSS elements in document of the RSS 1.0
 boolean isMyType(Document document)
          Indicates if a JDom document is an RSS instance that can be parsed with the parser.
protected  WireFeed parseChannel(Element rssRoot)
          Parses the root element of an RSS document into a Channel bean.
protected  Item parseItem(Element rssRoot, Element eItem)
          Parses an item element of an RSS document looking for item information.
protected  Description parseItemDescription(Element rssRoot, Element eDesc)
           
 
クラス com.sun.syndication.io.impl.RSS090Parser から継承されたメソッド
getContentNamespace, getImage, getItems, getRDFNamespace, getTextInput, parse, parseImage, parseItems, parseTextInput, validateFeed
 
クラス com.sun.syndication.io.impl.BaseWireFeedParser から継承されたメソッド
extractForeignMarkup, getAttribute, getAttributeValue, getType, parseFeedModules, parseItemModules
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

RSS10Parser

public RSS10Parser()

RSS10Parser

protected RSS10Parser(java.lang.String type,
                      Namespace ns)
メソッドの詳細

isMyType

public boolean isMyType(Document document)
Indicates if a JDom document is an RSS instance that can be parsed with the parser.

It checks for RDF ("http://www.w3.org/1999/02/22-rdf-syntax-ns#") and RSS ("http://purl.org/rss/1.0/") namespaces being defined in the root element.

定義:
インタフェース WireFeedParser 内の isMyType
オーバーライド:
クラス RSS090Parser 内の isMyType
パラメータ:
document - document to check if it can be parsed with this parser implementation.
戻り値:
true if the document is RSS1., false otherwise.

getRSSNamespace

protected Namespace getRSSNamespace()
Returns the namespace used by RSS elements in document of the RSS 1.0

オーバーライド:
クラス RSS090Parser 内の getRSSNamespace
戻り値:
returns "http://purl.org/rss/1.0/".

parseItem

protected Item parseItem(Element rssRoot,
                         Element eItem)
Parses an item element of an RSS document looking for item information.

It first invokes super.parseItem and then parses and injects the description property if present.

オーバーライド:
クラス RSS090Parser 内の parseItem
パラメータ:
rssRoot - the root element of the RSS document in case it's needed for context.
eItem - the item element to parse.
戻り値:
the parsed RSSItem bean.

parseChannel

protected WireFeed parseChannel(Element rssRoot)
クラス RSS090Parser の記述:
Parses the root element of an RSS document into a Channel bean.

It reads title, link and description and delegates to parseImage, parseItems and parseTextInput. This delegation always passes the root element of the RSS document as different RSS version may have this information in different parts of the XML tree (no assumptions made thanks to the specs variaty)

オーバーライド:
クラス RSS090Parser 内の parseChannel
パラメータ:
rssRoot - the root element of the RSS document to parse.
戻り値:
the parsed Channel bean.

parseItemDescription

protected Description parseItemDescription(Element rssRoot,
                                           Element eDesc)