org.openrdf.rio.rss
Class RssWriter

java.lang.Object
  extended by org.openrdf.rio.helpers.OrganizedRDFWriter
      extended by org.openrdf.rio.rss.RssWriter
All Implemented Interfaces:
RDFHandler, RDFWriter

public class RssWriter
extends OrganizedRDFWriter

Outputs an RSS feed from a given channel resource.

Author:
James Leigh

Constructor Summary
RssWriter(File file)
           
RssWriter(File file, String enc)
           
RssWriter(OutputStream writer)
           
RssWriter(String filename)
           
RssWriter(String filename, String enc)
           
RssWriter(Writer writer)
           
 
Method Summary
 void printChannel(Resource channel)
           
 void startRDF()
           
 
Methods inherited from class org.openrdf.rio.helpers.OrganizedRDFWriter
close, endRDF, getRDFFormat, handleComment, handleNamespace, handleStatement, print, print, print, print, print, printReferenced, setConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RssWriter

public RssWriter(File file,
                 String enc)
          throws FileNotFoundException,
                 UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException

RssWriter

public RssWriter(File file)
          throws FileNotFoundException
Throws:
FileNotFoundException

RssWriter

public RssWriter(String filename,
                 String enc)
          throws FileNotFoundException,
                 UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException

RssWriter

public RssWriter(String filename)
          throws FileNotFoundException
Throws:
FileNotFoundException

RssWriter

public RssWriter(OutputStream writer)

RssWriter

public RssWriter(Writer writer)
Method Detail

startRDF

public void startRDF()
              throws RDFHandlerException
Specified by:
startRDF in interface RDFHandler
Overrides:
startRDF in class OrganizedRDFWriter
Throws:
RDFHandlerException

printChannel

public void printChannel(Resource channel)
                  throws RepositoryException,
                         RDFHandlerException
Throws:
RepositoryException
RDFHandlerException


Copyright © 2004-2008 Aduna. All Rights Reserved.