com.ecyrd.jspwiki.content
Class Exporter
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Exporter
public Exporter(WikiEngine engine,
OutputStream outStream)
throws UnsupportedEncodingException
- Create a new wiki exporter.
- Parameters:
engine
- The WikiEngine to exportoutStream
- The stream to which the XML data should be written.
- Throws:
UnsupportedEncodingException
- If your platform does not support UTF-8
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