de.nava.informa.exporters
Class RSS_1_0_Exporter

java.lang.Object
  extended by de.nava.informa.exporters.RSS_1_0_Exporter
All Implemented Interfaces:
ChannelExporterIF

public class RSS_1_0_Exporter
extends Object
implements ChannelExporterIF

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


Constructor Summary
RSS_1_0_Exporter(File file)
          Creates a channel exporter bound to the file given in the argument.
RSS_1_0_Exporter(File file, String encoding)
          Creates a channel exporter bound to the file given in the arguments.
RSS_1_0_Exporter(String filename)
          Creates a channel exporter bound to the file given in the argument.
RSS_1_0_Exporter(Writer writer, String encoding)
          Creates a channel exporter bound to the Writer given in the arguments.
 
Method Summary
 void write(ChannelIF channel)
          Writes the given channel 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

RSS_1_0_Exporter

public RSS_1_0_Exporter(String filename)
                 throws IOException
Creates a channel exporter bound to the file given in the argument. The channel will be written out in the UTF-8 encoding.

Parameters:
filename - - The name of the file to which the channel object is to be written.
Throws:
IOException

RSS_1_0_Exporter

public RSS_1_0_Exporter(File file)
                 throws IOException
Creates a channel 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 channel object is to be written.
Throws:
IOException

RSS_1_0_Exporter

public RSS_1_0_Exporter(File file,
                        String encoding)
                 throws IOException
Creates a channel exporter bound to the file given in the arguments.

Parameters:
file - - The file object to which the channel object is to be written.
encoding - - The character encoding to write the channel object in.
Throws:
IOException

RSS_1_0_Exporter

public RSS_1_0_Exporter(Writer writer,
                        String encoding)
Creates a channel exporter bound to the Writer given in the arguments.

Parameters:
writer - - The Writer to which the channel object is to be written.
encoding - - The character encoding the Writer writes in.
Method Detail

write

public void write(ChannelIF channel)
           throws IOException
Description copied from interface: ChannelExporterIF
Writes the given channel to an implicit implementation dependent destination.

Specified by:
write in interface ChannelExporterIF
Parameters:
channel - - The channel to be exported/written; an object implementing ChannelIF.
Throws:
IOException - - Thrown if writing the channel fails.


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.