com.sun.syndication.io
public class SyndFeedInput extends Object
It delegates to a WireFeedInput to handle all feed types.
Field Summary | |
---|---|
WireFeedInput | _feedInput |
Constructor Summary | |
---|---|
SyndFeedInput()
Creates a SyndFeedInput instance with input validation turned off.
| |
SyndFeedInput(boolean validate)
Creates a SyndFeedInput instance.
|
Method Summary | |
---|---|
SyndFeed | build(File file)
Builds SyndFeedImpl from a file.
|
SyndFeed | build(Reader reader)
Builds SyndFeedImpl from an Reader.
|
SyndFeed | build(InputSource is)
Builds SyndFeedImpl from an W3C SAX InputSource.
|
SyndFeed | build(Document document)
Builds SyndFeedImpl from an W3C DOM document.
|
SyndFeed | build(Document document)
Builds SyndFeedImpl from an JDOM document.
|
boolean | getXmlHealerOn()
Indicates if the WiredFeedInput instance will XML heal (if necessary) the character stream.
|
void | setXmlHealerOn(boolean heals)
Enables XML healing in the WiredFeedInput instance.
|
Parameters: validate indicates if the input should be validated. NOT IMPLEMENTED YET (validation does not happen)
Parameters: file file to read to create the SyndFeedImpl.
Returns: the SyndFeedImpl read from the file.
Throws: FileNotFoundException thrown if the file could not be found. IOException thrown if there is problem reading the file. IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. FeedException if the feed could not be parsed
Parameters: reader Reader to read to create the SyndFeedImpl.
Returns: the SyndFeedImpl read from the Reader.
Throws: IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. FeedException if the feed could not be parsed
Parameters: is W3C SAX InputSource to read to create the SyndFeedImpl.
Returns: the SyndFeedImpl read from the W3C SAX InputSource.
Throws: IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. FeedException if the feed could not be parsed
Parameters: document W3C DOM document to read to create the SyndFeedImpl.
Returns: the SyndFeedImpl read from the W3C DOM document.
Throws: IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. FeedException if the feed could not be parsed
Parameters: document JDOM document to read to create the SyndFeedImpl.
Returns: the SyndFeedImpl read from the JDOM document.
Throws: IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers. FeedException if the feed could not be parsed
Healing trims leading chars from the stream (empty spaces and comments) until the XML prolog.
Healing resolves HTML entities (from literal to code number) in the reader.
The healing is done only with the build(File) and build(Reader) signatures.
By default is TRUE.
Returns: TRUE if healing is enabled, FALSE if not.
Healing trims leading chars from the stream (empty spaces and comments) until the XML prolog.
Healing resolves HTML entities (from literal to code number) in the reader.
The healing is done only with the build(File) and build(Reader) signatures.
By default is TRUE.
Parameters: heals TRUE enables stream healing, FALSE disables it.