org.eclipse.ecf.provider.rss.channel
Class RSSExporter_2_0

java.lang.Object
  extended by org.eclipse.ecf.provider.rss.channel.RSSExporter_2_0

public class RSSExporter_2_0
extends java.lang.Object

A channel exporter that can write channel objects out into the interchange syntax defined by RSS 2.0.

Author:
Sergey Yakovlev

Constructor Summary
RSSExporter_2_0(java.io.File file)
          Creates a feed exporter bound to the file given in the argument.
RSSExporter_2_0(java.io.File file, java.lang.String encoding)
          Creates a feed exporter bound to the file given in the arguments.
 
Method Summary
protected static void dumpStack(java.lang.String msg, java.lang.Throwable e)
           
protected static void trace(java.lang.String msg)
           
 void write(RssFeed feed)
          Writes the given feed to an implicit implementation dependent destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSSExporter_2_0

public RSSExporter_2_0(java.io.File file)
                throws java.io.IOException
Creates a feed exporter bound to the file given in the argument. The channel will be written out in the UTF-8 encoding.

Parameters:
file - - The file object to which the feed object is to be written.
Throws:
java.io.IOException - - If any IO errors occur.

RSSExporter_2_0

public RSSExporter_2_0(java.io.File file,
                       java.lang.String encoding)
                throws java.io.IOException
Creates a feed exporter bound to the file given in the arguments.

Parameters:
file - - The file object to which the feed object is to be written.
encoding - - The character encoding to write the channel object in.
Throws:
java.io.IOException - - If any IO errors occur.
Method Detail

trace

protected static void trace(java.lang.String msg)

dumpStack

protected static void dumpStack(java.lang.String msg,
                                java.lang.Throwable e)

write

public void write(RssFeed feed)
           throws java.io.IOException
Writes the given feed to an implicit implementation dependent destination.

Parameters:
feed - - The feed to be exported/written.
Throws:
java.io.IOException - - If any IO errors occur.