de.nava.informa.exporters
Class RSS_0_91_Exporter

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

public class RSS_0_91_Exporter
extends Object
implements ChannelExporterIF

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


Field Summary
static String PUBLIC_ID
           
static String RSS_VERSION
           
static String SYSTEM_ID
           
 
Constructor Summary
RSS_0_91_Exporter(File file)
          Creates a channel exporter bound to the file given in the argument.
RSS_0_91_Exporter(File file, String encoding)
          Creates a channel exporter bound to the file given in the arguments.
RSS_0_91_Exporter(String filename)
          Creates a channel exporter bound to the file given in the argument.
RSS_0_91_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
 

Field Detail

PUBLIC_ID

public static final String PUBLIC_ID
See Also:
Constant Field Values

SYSTEM_ID

public static final String SYSTEM_ID
See Also:
Constant Field Values

RSS_VERSION

public static final String RSS_VERSION
See Also:
Constant Field Values
Constructor Detail

RSS_0_91_Exporter

public RSS_0_91_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_0_91_Exporter

public RSS_0_91_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_0_91_Exporter

public RSS_0_91_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_0_91_Exporter

public RSS_0_91_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.