| java.lang.Object com.sun.syndication.io.SyndFeedOutput
SyndFeedOutput | public class SyndFeedOutput (Code) | | Generates an XML document (String, File, OutputStream, Writer, W3C DOM document or JDOM document)
out of an SyndFeedImpl..
It delegates to a WireFeedOutput to generate all feed types.
author: Alejandro Abdelnur |
Constructor Summary | |
public | SyndFeedOutput() Creates a SyndFeedOutput instance. |
Method Summary | |
public void | output(SyndFeed feed, File file) Creates a File containing with the XML representation for the given SyndFeedImpl.
If the feed encoding is not NULL, it will be used in the XML prolog encoding attribute. | public void | output(SyndFeed feed, Writer writer) Writes to an Writer the XML representation for the given SyndFeedImpl.
If the feed encoding is not NULL, it will be used in the XML prolog encoding attribute. | public Document | outputJDom(SyndFeed feed) Creates a JDOM document for the given SyndFeedImpl.
This method does not use the feed encoding property.
Parameters: feed - Abstract feed to create JDOM document from. | public String | outputString(SyndFeed feed) Creates a String with the XML representation for the given SyndFeedImpl.
If the feed encoding is not NULL, it will be used in the XML prolog encoding attribute. | public org.w3c.dom.Document | outputW3CDom(SyndFeed feed) Creates a W3C DOM document for the given SyndFeedImpl.
This method does not use the feed encoding property.
Parameters: feed - Abstract feed to create W3C DOM document from. |
SyndFeedOutput | public SyndFeedOutput()(Code) | | Creates a SyndFeedOutput instance.
|
output | public void output(SyndFeed feed, File file) throws IOException, FeedException(Code) | | Creates a File containing with the XML representation for the given SyndFeedImpl.
If the feed encoding is not NULL, it will be used in the XML prolog encoding attribute. The platform
default charset encoding is used to write the feed to the file. It is the responsibility
of the developer to ensure the feed encoding is set to the platform charset encoding.
Parameters: feed - Abstract feed to create XML representation from. The type of the SyndFeedImpl must matchthe type given to the FeedOuptut constructor. Parameters: file - the file where to write the XML representation for the given SyndFeedImpl. throws: IOException - thrown if there was some problem writing to the File. throws: FeedException - thrown if the XML representation for the feed could not be created. |
output | public void output(SyndFeed feed, Writer writer) throws IOException, FeedException(Code) | | Writes to an Writer the XML representation for the given SyndFeedImpl.
If the feed encoding is not NULL, it will be used in the XML prolog encoding attribute. It is the responsibility
of the developer to ensure that if the String is written to a character stream the stream charset is the same as
the feed encoding property.
Parameters: feed - Abstract feed to create XML representation from. The type of the SyndFeedImpl must matchthe type given to the FeedOuptut constructor. Parameters: writer - Writer to write the XML representation for the given SyndFeedImpl. throws: IOException - thrown if there was some problem writing to the Writer. throws: FeedException - thrown if the XML representation for the feed could not be created. |
outputJDom | public Document outputJDom(SyndFeed feed) throws FeedException(Code) | | Creates a JDOM document for the given SyndFeedImpl.
This method does not use the feed encoding property.
Parameters: feed - Abstract feed to create JDOM document from. The type of the SyndFeedImpl must matchthe type given to the FeedOuptut constructor. the JDOM document for the given SyndFeedImpl. throws: FeedException - thrown if the JDOM document for the feed could not be created. |
outputString | public String outputString(SyndFeed feed) throws FeedException(Code) | | Creates a String with the XML representation for the given SyndFeedImpl.
If the feed encoding is not NULL, it will be used in the XML prolog encoding attribute. It is the responsibility
of the developer to ensure that if the String is written to a character stream the stream charset is the same as
the feed encoding property.
Parameters: feed - Abstract feed to create XML representation from. The type of the SyndFeedImpl must matchthe type given to the FeedOuptut constructor. a String with the XML representation for the given SyndFeedImpl. throws: FeedException - thrown if the XML representation for the feed could not be created. |
outputW3CDom | public org.w3c.dom.Document outputW3CDom(SyndFeed feed) throws FeedException(Code) | | Creates a W3C DOM document for the given SyndFeedImpl.
This method does not use the feed encoding property.
Parameters: feed - Abstract feed to create W3C DOM document from. The type of the SyndFeedImpl must matchthe type given to the FeedOuptut constructor. the W3C DOM document for the given SyndFeedImpl. throws: FeedException - thrown if the W3C DOM document for the feed could not be created. |
|
|