It delegates to a WireFeedInput to handle all feed types.
| Modifier and Type | Field and Description |
|---|---|
| private final WireFeedInput | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SyndFeedInput(final boolean
indicates if the input should be validated. NOT IMPLEMENTED YET (validation
does not happen) validate, final Locale locale)Creates a SyndFeedInput instance. |
| Modifier and Type | Method and Description |
|---|---|
| public SyndFeed | |
| public SyndFeed | |
| public SyndFeed | Returns: the SyndFeedImpl read from the W3C SAX InputSource.W3C SAX InputSource to read to create the SyndFeedImpl. is)Builds SyndFeedImpl from an W3C SAX InputSource. |
| public SyndFeed | |
| public SyndFeed | |
| public boolean | Returns: TRUE if healing is enabled, FALSE if not.Indicates if the WiredFeedInput instance will XML heal (if necessary) the character stream. |
| public boolean | Returns: true when Doctype declarations are allowed, false otherwiseIndicates whether Doctype declarations are allowed. |
| public boolean | Returns: true if the WireFeed is made available in the SyndFeed. False by default.
|
| public void | setAllowDoctypes(boolean
true when Doctype declarations should be allowed again, false otherwise allowDoctypes)Since ROME 1.5.1 we fixed a security vulnerability by disallowing Doctype declarations by default. |
| public void | setPreserveWireFeed(final boolean
set to true to make the WireFeed is made available in the SyndFeed.
False by default. preserveWireFeed)
|
| public void | setXmlHealerOn(final boolean
TRUE enables stream healing, FALSE disables it. heals)Enables XML healing in the WiredFeedInput instance. |
| feedInput | back to summary |
|---|---|
| private final WireFeedInput feedInput | |
| preserveWireFeed | back to summary |
|---|---|
| private boolean preserveWireFeed | |
| SyndFeedInput | back to summary |
|---|---|
| public SyndFeedInput() Creates a SyndFeedInput instance with input validation turned off.
| |
| SyndFeedInput | back to summary |
|---|---|
| public SyndFeedInput(final boolean validate, final Locale locale) Creates a SyndFeedInput instance.
| |
| build | back to summary |
|---|---|
| public SyndFeed build(final File file) throws FileNotFoundException, IOException, IllegalArgumentException, FeedException Builds SyndFeedImpl from a file.
| |
| build | back to summary |
|---|---|
| public SyndFeed build(final Reader reader) throws IllegalArgumentException, FeedException Builds SyndFeedImpl from an Reader.
| |
| build | back to summary |
|---|---|
| public SyndFeed build(final InputSource is) throws IllegalArgumentException, FeedException Builds SyndFeedImpl from an W3C SAX InputSource.
| |
| build | back to summary |
|---|---|
| public SyndFeed build(final Document document) throws IllegalArgumentException, FeedException Builds SyndFeedImpl from an W3C DOM document.
| |
| build | back to summary |
|---|---|
| public SyndFeed build(final Document document) throws IllegalArgumentException, FeedException Builds SyndFeedImpl from an JDOM document.
| |
| getXmlHealerOn | back to summary |
|---|---|
| public boolean getXmlHealerOn() 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.
| |
| isAllowDoctypes | back to summary |
|---|---|
| public boolean isAllowDoctypes() Indicates whether Doctype declarations are allowed.
| |
| isPreserveWireFeed | back to summary |
|---|---|
public boolean isPreserveWireFeed()
| |
| setAllowDoctypes | back to summary |
|---|---|
| public void setAllowDoctypes(boolean allowDoctypes) Since ROME 1.5.1 we fixed a security vulnerability by disallowing Doctype declarations by default. This change breaks the compatibility with at least RSS 0.91N because it requires a Doctype declaration. You are able to allow Doctype declarations again with this property. You should only activate it when the feeds that you process are absolutely trustful.
| |
| setPreserveWireFeed | back to summary |
|---|---|
public void setPreserveWireFeed(final boolean preserveWireFeed)
| |
| setXmlHealerOn | back to summary |
|---|---|
| public void setXmlHealerOn(final boolean heals) 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.
| |