com.ecyrd.jspwiki.content
Class Exporter

java.lang.Object
  extended by com.ecyrd.jspwiki.content.Exporter

public class Exporter
extends Object

Exports the contents of the wiki in a JCR System Tree format. UUIDs that this class generates are based on the jspwiki application name set in jspwiki.properties, and the name of the page. This means that it is possible to get collisions, if you have two wikis with the same appname.


Constructor Summary
Exporter(WikiEngine engine, OutputStream outStream)
          Create a new wiki exporter.
 
Method Summary
 void export()
          Exports the entire repository.
protected  void exportPage(Attachment att)
           
protected  void exportPage(WikiPage p)
           
static void main(String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exporter

public Exporter(WikiEngine engine,
                OutputStream outStream)
         throws UnsupportedEncodingException
Create a new wiki exporter.

Parameters:
engine - The WikiEngine to export
outStream - The stream to which the XML data should be written.
Throws:
UnsupportedEncodingException - If your platform does not support UTF-8
Method Detail

export

public void export()
            throws ProviderException,
                   IOException
Exports the entire repository.

Throws:
ProviderException
IOException

exportPage

protected void exportPage(WikiPage p)
                   throws IOException,
                          ProviderException
Throws:
IOException
ProviderException

exportPage

protected void exportPage(Attachment att)
                   throws IOException,
                          ProviderException
Throws:
IOException
ProviderException

main

public static void main(String[] argv)
                 throws IOException
Throws:
IOException