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

Quick Search    Search Deep

com.sun.syndication.feed.synd
Interface Converter  view Converter download Converter.java


public interface Converter

Interface that defines the functionality to convert a SyndFeedImpl to a real feed (RSS or Atom) and vice versa.

Each implementation knows how to deal with a specific type (version) of a real feed.

Implementations must be thread safe.

TODO: explain how developers can plugin their own implementations.


Method Summary
 void copyInto(com.sun.syndication.feed.WireFeed feed, SyndFeed syndFeed)
          Makes a deep copy/conversion of the values of a real feed into a SyndFeedImpl.
 com.sun.syndication.feed.WireFeed createRealFeed(SyndFeed syndFeed)
          Creates real feed with a deep copy/conversion of the values of a SyndFeedImpl.
 java.lang.String getType()
          Returns the type (version) of the real feed this converter handles.
 

Method Detail

getType

public java.lang.String getType()
Returns the type (version) of the real feed this converter handles.


copyInto

public void copyInto(com.sun.syndication.feed.WireFeed feed,
                     SyndFeed syndFeed)
Makes a deep copy/conversion of the values of a real feed into a SyndFeedImpl.

It assumes the given SyndFeedImpl has no properties set.


createRealFeed

public com.sun.syndication.feed.WireFeed createRealFeed(SyndFeed syndFeed)
Creates real feed with a deep copy/conversion of the values of a SyndFeedImpl.