public class Exporter
extends java.lang.Object
The exported WikiSpace name is always "main". You can edit the XML file by hand if you wish to import it to a different wikispace.
| Constructor and Description |
|---|
Exporter(java.io.OutputStream outStream,
boolean verbose)
Create a new wiki exporter.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
export(java.lang.String dir) |
void |
export(WikiEngine engine)
Exports the entire repository using a WikiEngine.
|
protected void |
exportPage(WikiEngine engine,
Attachment att) |
protected void |
exportPage(WikiEngine engine,
WikiPage p) |
static void |
exportWithDir(java.lang.String dir,
java.lang.String outFile)
This is a special version of the routine which knows the FileSystemProvider default format.
|
static void |
exportWithProperties(java.lang.String propFile,
java.lang.String outFile) |
static void |
main(java.lang.String[] argv)
The main for the program
|
public Exporter(java.io.OutputStream outStream,
boolean verbose)
throws java.io.UnsupportedEncodingException
outStream - The stream to which the XML data should be written.verbose - use verbosity or notjava.io.UnsupportedEncodingException - If your platform does not support UTF-8public void export(WikiEngine engine) throws ProviderException, java.io.IOException
ProviderExceptionjava.io.IOException - if an IO exception occurs.protected void export(java.lang.String dir)
throws java.io.IOException
java.io.IOExceptionprotected void exportPage(WikiEngine engine, WikiPage p) throws java.io.IOException, ProviderException
java.io.IOExceptionProviderExceptionprotected void exportPage(WikiEngine engine, Attachment att) throws java.io.IOException, ProviderException
java.io.IOExceptionProviderExceptionpublic static void main(java.lang.String[] argv)
throws java.io.IOException
args - The command line argumentsjava.io.IOExceptionpublic static void exportWithDir(java.lang.String dir,
java.lang.String outFile)
throws java.io.IOException
dir - outFile - java.io.IOException - if an IO exception occurs.public static void exportWithProperties(java.lang.String propFile,
java.lang.String outFile)
throws java.io.IOException
java.io.IOExceptionstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.