Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.syndication.io
Class SyndFeedOutput  view SyndFeedOutput download SyndFeedOutput.java

java.lang.Object
  extended bycom.sun.syndication.io.SyndFeedOutput

public class SyndFeedOutput
extends java.lang.Object

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.


Field Summary
private  WireFeedOutput _feedOutput
           
 
Constructor Summary
SyndFeedOutput()
          Creates a SyndFeedOutput instance.
 
Method Summary
 void output(com.sun.syndication.feed.synd.SyndFeed feed, java.io.File file)
          Creates a File containing with the XML representation for the given SyndFeedImpl.
 void output(com.sun.syndication.feed.synd.SyndFeed feed, java.io.Writer writer)
          Writes to an Writer the XML representation for the given SyndFeedImpl.
 org.jdom.Document outputJDom(com.sun.syndication.feed.synd.SyndFeed feed)
          Creates a JDOM document for the given SyndFeedImpl.
 java.lang.String outputString(com.sun.syndication.feed.synd.SyndFeed feed)
          Creates a String with the XML representation for the given SyndFeedImpl.
 org.w3c.dom.Document outputW3CDom(com.sun.syndication.feed.synd.SyndFeed feed)
          Creates a W3C DOM document for the given SyndFeedImpl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_feedOutput

private WireFeedOutput _feedOutput
Constructor Detail

SyndFeedOutput

public SyndFeedOutput()
Creates a SyndFeedOutput instance.

Method Detail

outputString

public java.lang.String outputString(com.sun.syndication.feed.synd.SyndFeed feed)
                              throws FeedException
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.


output

public void output(com.sun.syndication.feed.synd.SyndFeed feed,
                   java.io.File file)
            throws java.io.IOException,
                   FeedException
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.


output

public void output(com.sun.syndication.feed.synd.SyndFeed feed,
                   java.io.Writer writer)
            throws java.io.IOException,
                   FeedException
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.


outputW3CDom

public org.w3c.dom.Document outputW3CDom(com.sun.syndication.feed.synd.SyndFeed feed)
                                  throws FeedException
Creates a W3C DOM document for the given SyndFeedImpl.

This method does not use the feed encoding property.


outputJDom

public org.jdom.Document outputJDom(com.sun.syndication.feed.synd.SyndFeed feed)
                             throws FeedException
Creates a JDOM document for the given SyndFeedImpl.

This method does not use the feed encoding property.