|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
org.apache.commons.digester.Digester | +--org.apache.commons.digester.rss.RSSDigester
Implementation of org.apache.commons.digester.Digester designed to process input streams that conform to the Rich Site Summary DTD, version 0.91. For more information about this format, see the My Netscape site.
The default implementation object returned by calling
parse()
(an instance of
org.apache.commons.digester.rss.Channel
)
knows how to render itself in XML format via the render()
method. See the test main()
method below for an
example of using these classes.
フィールドの概要 | |
protected java.lang.String |
channelClass
The fully qualified class name of the Channel
implementation class. |
protected boolean |
configured
Have we been configured yet? |
protected java.lang.String |
imageClass
The fully qualified class name of the Image
implementation class. |
protected java.lang.String |
itemClass
The fully qualified class name of the Item
implementation class. |
protected static java.lang.String[] |
registrations
The set of public identifiers, and corresponding resource names, for the versions of the DTDs that we know about. |
protected java.lang.String |
textInputClass
The fully qualified class name of the TextInput
implementation class. |
クラス org.apache.commons.digester.Digester から継承したフィールド |
bodyText, bodyTexts, classLoader, debug, dtds, errorHandler, factory, locator, match, namespaceAware, namespaces, params, parser, publicId, reader, root, rules, stack, useContextClassLoader, validating, writer |
コンストラクタの概要 | |
RSSDigester()
|
メソッドの概要 | |
protected void |
configure()
Configure the parsing rules that will be used to process RSS input. |
java.lang.String |
getChannelClass()
|
java.lang.String |
getImageClass()
|
java.lang.String |
getItemClass()
|
java.lang.String |
getTextInputClass()
|
static void |
main(java.lang.String[] args)
Test main program that parses the channel description included in this package as a static resource. |
java.lang.Object |
parse(java.io.File file)
Parse the content of the specified file using this Digester. |
java.lang.Object |
parse(org.xml.sax.InputSource input)
Parse the content of the specified input source using this Digester. |
java.lang.Object |
parse(java.io.InputStream input)
Parse the content of the specified input stream using this Digester. |
java.lang.Object |
parse(java.lang.String uri)
Parse the content of the specified URI using this Digester. |
void |
setChannelClass(java.lang.String channelClass)
|
void |
setImageClass(java.lang.String imageClass)
|
void |
setItemClass(java.lang.String itemClass)
|
void |
setTextInputClass(java.lang.String textInputClass)
|
フィールドの詳細 |
protected boolean configured
protected static final java.lang.String[] registrations
protected java.lang.String channelClass
Channel
implementation class.protected java.lang.String imageClass
Image
implementation class.protected java.lang.String itemClass
Item
implementation class.protected java.lang.String textInputClass
TextInput
implementation class.コンストラクタの詳細 |
public RSSDigester()
メソッドの詳細 |
public java.lang.String getChannelClass()
public void setChannelClass(java.lang.String channelClass)
public java.lang.String getImageClass()
public void setImageClass(java.lang.String imageClass)
public java.lang.String getItemClass()
public void setItemClass(java.lang.String itemClass)
public java.lang.String getTextInputClass()
public void setTextInputClass(java.lang.String textInputClass)
public java.lang.Object parse(java.io.File file) throws java.io.IOException, org.xml.sax.SAXException
Digester
内の parse
file
- File containing the XML data to be parsedjava.io.IOException
- if an input/output error occursSAXException
- if a parsing exception occurspublic java.lang.Object parse(org.xml.sax.InputSource input) throws java.io.IOException, org.xml.sax.SAXException
Digester
内の parse
input
- Input source containing the XML data to be parsedjava.io.IOException
- if an input/output error occursSAXException
- if a parsing exception occurspublic java.lang.Object parse(java.io.InputStream input) throws java.io.IOException, org.xml.sax.SAXException
Digester
内の parse
input
- Input stream containing the XML data to be parsedjava.io.IOException
- if an input/output error occursSAXException
- if a parsing exception occurspublic java.lang.Object parse(java.lang.String uri) throws java.io.IOException, org.xml.sax.SAXException
Digester
内の parse
uri
- URI containing the XML data to be parsedjava.io.IOException
- if an input/output error occursSAXException
- if a parsing exception occursprotected void configure()
Digester
内の configure
public static void main(java.lang.String[] args)
args
- The command line arguments (ignored)
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |