|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.io.SyndFeedInput
Parses an XML document (File, InputStream, Reader, W3C SAX InputSource, W3C DOM Document or JDom DOcument) into an SyndFeed.
It delegates to a WireFeedInput to handle all feed types.
Constructor Summary | |
SyndFeedInput()
Creates a SyndFeedInput instance with input validation turned off. |
|
SyndFeedInput(boolean validate)
Creates a SyndFeedInput instance. |
Method Summary | |
SyndFeedI |
build(org.w3c.dom.Document document)
Builds SyndFeed from an W3C DOM document. |
SyndFeedI |
build(org.jdom.Document document)
Builds SyndFeed from an JDOM document. |
SyndFeedI |
build(java.io.File file)
Builds SyndFeed from a file. |
SyndFeedI |
build(org.xml.sax.InputSource is)
Builds SyndFeed from an W3C SAX InputSource. |
SyndFeedI |
build(java.io.InputStream is)
Builds SyndFeed from an InputStream. |
SyndFeedI |
build(java.io.Reader reader)
Builds SyndFeed from an Reader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SyndFeedInput()
public SyndFeedInput(boolean validate)
validate
- indicates if the input should be validated. NOT IMPLEMENTED YET (validation does not happen)Method Detail |
public SyndFeedI build(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException, java.lang.IllegalArgumentException, FeedException
file
- file to read to create the SyndFeed.
java.io.FileNotFoundException
- thrown if the file could not be found.
java.io.IOException
- thrown if there is problem reading the file.
java.lang.IllegalArgumentException
- thrown if feed type could not be understood by any of the underlying parsers.
FeedException
- if the feed could not be parsedpublic SyndFeedI build(java.io.InputStream is) throws java.lang.IllegalArgumentException, FeedException
is
- InputStream to read to create the SyndFeed.
java.lang.IllegalArgumentException
- thrown if feed type could not be understood by any of the underlying parsers.
FeedException
- if the feed could not be parsedpublic SyndFeedI build(java.io.Reader reader) throws java.lang.IllegalArgumentException, FeedException
reader
- Reader to read to create the SyndFeed.
java.lang.IllegalArgumentException
- thrown if feed type could not be understood by any of the underlying parsers.
FeedException
- if the feed could not be parsedpublic SyndFeedI build(org.xml.sax.InputSource is) throws java.lang.IllegalArgumentException, FeedException
is
- W3C SAX InputSource to read to create the SyndFeed.
java.lang.IllegalArgumentException
- thrown if feed type could not be understood by any of the underlying parsers.
FeedException
- if the feed could not be parsedpublic SyndFeedI build(org.w3c.dom.Document document) throws java.lang.IllegalArgumentException, FeedException
document
- W3C DOM document to read to create the SyndFeed.
java.lang.IllegalArgumentException
- thrown if feed type could not be understood by any of the underlying parsers.
FeedException
- if the feed could not be parsedpublic SyndFeedI build(org.jdom.Document document) throws java.lang.IllegalArgumentException, FeedException
document
- JDOM document to read to create the SyndFeed.
java.lang.IllegalArgumentException
- thrown if feed type could not be understood by any of the underlying parsers.
FeedException
- if the feed could not be parsed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |