|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.syndication.io.SyndOutput
Generates an XML document (String, File, OutputStream, Writer, W3C DOM document or JDOM document) out of an SyndFeed..
It delegates to a FeedOutput to generate all feed types.
| Constructor Summary | |
SyndOutput(java.lang.String type)
Creates a SyndOutput instace for a given feed type. |
|
| Method Summary | |
org.w3c.dom.Document |
ouptutW3CDom(SyndFeedI feed)
Creates a W3C DOM document for the given SyndFeed. |
void |
output(SyndFeedI feed,
java.io.File file)
Creates a File containing with the XML representation for the given SyndFeed. |
void |
output(SyndFeedI feed,
java.io.OutputStream os)
Writes to an OutputStream the XML representation for the given SyndFeed. |
void |
output(SyndFeedI feed,
java.io.Writer writer)
Writes to an Writer the XML representation for the given SyndFeed. |
org.jdom.Document |
outputJDom(SyndFeedI feed)
Creates a JDOM document for the given SyndFeed. |
java.lang.String |
outputString(SyndFeedI feed)
Creates a String with the XML representation for the given SyndFeed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SyndOutput(java.lang.String type)
type - the type of feed to generate.| Method Detail |
public java.lang.String outputString(SyndFeedI feed)
throws FeedException
feed - Abstract feed to create XML representation from. The type of the SyndFeed must match
the type given to the FeedOuptut constructor.
FeedException - thrown if the XML representation for the feed could not be created.
public void output(SyndFeedI feed,
java.io.File file)
throws java.io.IOException,
FeedException
feed - Abstract feed to create XML representation from. The type of the SyndFeed must match
the type given to the FeedOuptut constructor.file - the file where to write the XML representation for the given SyndFeed.
java.io.IOException - thrown if there was some problem writing to the File.
FeedException - thrown if the XML representation for the feed could not be created.
public void output(SyndFeedI feed,
java.io.OutputStream os)
throws java.io.IOException,
FeedException
feed - Abstract feed to create XML representation from. The type of the SyndFeed must match
the type given to the FeedOuptut constructor.os - OutputStream to write the XML representation for the given SyndFeed.
java.io.IOException - thrown if there was some problem writing to the OutputStream.
FeedException - thrown if the XML representation for the feed could not be created.
public void output(SyndFeedI feed,
java.io.Writer writer)
throws java.io.IOException,
FeedException
feed - Abstract feed to create XML representation from. The type of the SyndFeed must match
the type given to the FeedOuptut constructor.writer - Writer to write the XML representation for the given SyndFeed.
java.io.IOException - thrown if there was some problem writing to the Writer.
FeedException - thrown if the XML representation for the feed could not be created.
public org.w3c.dom.Document ouptutW3CDom(SyndFeedI feed)
throws FeedException
feed - Abstract feed to create W3C DOM document from. The type of the SyndFeed must match
the type given to the FeedOuptut constructor.
FeedException - thrown if the W3C DOM document for the feed could not be created.
public org.jdom.Document outputJDom(SyndFeedI feed)
throws FeedException
feed - Abstract feed to create JDOM document from. The type of the SyndFeed must match
the type given to the FeedOuptut constructor.
FeedException - thrown if the JDOM document for the feed could not be created.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||