| java.lang.Object com.sun.syndication.io.SyndFeedInput
SyndFeedInput | public class SyndFeedInput (Code) | | Parses an XML document (File, InputStream, Reader, W3C SAX InputSource, W3C DOM Document or JDom DOcument)
into an SyndFeedImpl.
It delegates to a WireFeedInput to handle all feed types.
author: Alejandro Abdelnur |
Constructor Summary | |
public | SyndFeedInput() Creates a SyndFeedInput instance with input validation turned off. | public | SyndFeedInput(boolean validate) Creates a SyndFeedInput instance.
Parameters: validate - indicates if the input should be validated. |
Method Summary | |
public SyndFeed | build(File file) Builds SyndFeedImpl from a file.
Parameters: file - file to read to create the SyndFeedImpl. | public SyndFeed | build(Reader reader) Builds SyndFeedImpl from an Reader.
Parameters: reader - Reader to read to create the SyndFeedImpl. | public SyndFeed | build(InputSource is) Builds SyndFeedImpl from an W3C SAX InputSource.
Parameters: is - W3C SAX InputSource to read to create the SyndFeedImpl. | public SyndFeed | build(org.w3c.dom.Document document) Builds SyndFeedImpl from an W3C DOM document.
Parameters: document - W3C DOM document to read to create the SyndFeedImpl. | public SyndFeed | build(Document document) Builds SyndFeedImpl from an JDOM document.
Parameters: document - JDOM document to read to create the SyndFeedImpl. | public boolean | getXmlHealerOn() Indicates if the WiredFeedInput instance will XML heal (if necessary) the character stream. | public void | setXmlHealerOn(boolean heals) Enables XML healing in the WiredFeedInput instance. |
SyndFeedInput | public SyndFeedInput()(Code) | | Creates a SyndFeedInput instance with input validation turned off.
|
SyndFeedInput | public SyndFeedInput(boolean validate)(Code) | | Creates a SyndFeedInput instance.
Parameters: validate - indicates if the input should be validated. NOT IMPLEMENTED YET (validation does not happen) |
getXmlHealerOn | public boolean getXmlHealerOn()(Code) | | Indicates if the WiredFeedInput instance will XML heal (if necessary) the character stream.
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.
TRUE if healing is enabled, FALSE if not. |
setXmlHealerOn | public void setXmlHealerOn(boolean heals)(Code) | | Enables XML healing in the WiredFeedInput instance.
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. |
|
|