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

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

public class Atom10Parser
extends BaseWireFeedParser

Parser for Atom 1.0


コンストラクタの概要
  Atom10Parser()
           
protected Atom10Parser(java.lang.String type)
           
 
メソッドの概要
protected  Namespace getAtomNamespace()
           
static boolean getResolveURIs()
           
static boolean isAbsoluteURI(java.lang.String uri)
           
 boolean isMyType(Document document)
          Inspects an XML Document (JDOM) to check if it can parse it.
static boolean isRelativeURI(java.lang.String uri)
          Returns true if URI is relative.
 WireFeed parse(Document document, boolean validate)
          Parses an XML document (JDOM Document) into a feed bean.
protected  java.util.List parseEntries(Feed feed, java.lang.String baseURI, java.util.List eEntries)
           
protected  Entry parseEntry(Feed feed, Element eEntry, java.lang.String baseURI)
           
static Entry parseEntry(java.io.Reader rd, java.lang.String baseURI)
          Parse entry from reader.
protected  WireFeed parseFeed(Element eFeed)
           
static java.lang.String resolveURI(java.lang.String baseURI, Parent parent, java.lang.String url)
          Resolve URI via base URL and parent element.
static void setResolveURIs(boolean resolveURIs)
           
protected  void validateFeed(Document document)
           
 
クラス 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
 

コンストラクタの詳細

Atom10Parser

public Atom10Parser()

Atom10Parser

protected Atom10Parser(java.lang.String type)
メソッドの詳細

setResolveURIs

public static void setResolveURIs(boolean resolveURIs)

getResolveURIs

public static boolean getResolveURIs()

getAtomNamespace

protected Namespace getAtomNamespace()

isMyType

public boolean isMyType(Document document)
インタフェース WireFeedParser の記述:
Inspects an XML Document (JDOM) to check if it can parse it.

It checks if the given document if the type of feeds the parser understands.

パラメータ:
document - XML Document (JDOM) to check if it can be parsed by this parser.
戻り値:
true if the parser know how to parser this feed, false otherwise.

parse

public WireFeed parse(Document document,
                      boolean validate)
               throws java.lang.IllegalArgumentException,
                      FeedException
インタフェース WireFeedParser の記述:
Parses an XML document (JDOM Document) into a feed bean.

パラメータ:
document - XML document (JDOM) to parse.
validate - indicates if the feed should be strictly validated (NOT YET IMPLEMENTED).
戻り値:
the resulting feed bean.
例外:
java.lang.IllegalArgumentException - thrown if the parser cannot handle the given feed type.
FeedException - thrown if a feed bean cannot be created out of the XML document (JDOM).

validateFeed

protected void validateFeed(Document document)
                     throws FeedException
例外:
FeedException

parseFeed

protected WireFeed parseFeed(Element eFeed)
                      throws FeedException
例外:
FeedException

parseEntries

protected java.util.List parseEntries(Feed feed,
                                      java.lang.String baseURI,
                                      java.util.List eEntries)

parseEntry

protected Entry parseEntry(Feed feed,
                           Element eEntry,
                           java.lang.String baseURI)

isAbsoluteURI

public static boolean isAbsoluteURI(java.lang.String uri)

isRelativeURI

public static boolean isRelativeURI(java.lang.String uri)
Returns true if URI is relative.


resolveURI

public static java.lang.String resolveURI(java.lang.String baseURI,
                                          Parent parent,
                                          java.lang.String url)
Resolve URI via base URL and parent element. Resolve URI based considering xml:base and baseURI.

パラメータ:
baseURI - Base URI used to fetch the XML document
parent - Parent element from which to consider xml:base
url - URL to be resolved

parseEntry

public static Entry parseEntry(java.io.Reader rd,
                               java.lang.String baseURI)
                        throws JDOMException,
                               java.io.IOException,
                               java.lang.IllegalArgumentException,
                               FeedException
Parse entry from reader.

例外:
JDOMException
java.io.IOException
java.lang.IllegalArgumentException
FeedException