com.atlassian.confluence.importexport.impl
Class MemoryXmlExporter
java.lang.Object
com.atlassian.confluence.importexport.Exporter
com.atlassian.confluence.importexport.impl.AbstractExporterImpl
com.atlassian.confluence.importexport.impl.AbstractXmlExporter
com.atlassian.confluence.importexport.impl.MemoryXmlExporter
public class MemoryXmlExporter
- extends AbstractXmlExporter
Methods inherited from class com.atlassian.confluence.importexport.impl.AbstractXmlExporter |
addPropertiesForContent, backupEntities, backupEverything, doExport, expandSpaces, getContentAndContentPropertiesFromSpace, getExportType, getObjectsExcludedFromExport, setBootstrapManager, setMailContentManager, setPageManager, setPropertySetManager, setSessionFactory, setSettingsManager, setSpaceManager, writeBackupDescriptor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryXmlExporter
public MemoryXmlExporter()
getXmlOutputStream
protected OutputStream getXmlOutputStream()
throws ImportExportException,
IOException
- Description copied from class:
AbstractXmlExporter
- output stream to write XML object information to
- Overrides:
getXmlOutputStream
in class AbstractXmlExporter
- Returns:
- the XMLOutputStream
- Throws:
ImportExportException
FileNotFoundException
IOException
getDescriptorOutputStream
protected OutputStream getDescriptorOutputStream()
throws ImportExportException,
FileNotFoundException
- Overrides:
getDescriptorOutputStream
in class AbstractXmlExporter
- Throws:
ImportExportException
FileNotFoundException
getXmlByteStream
public ByteArrayOutputStream getXmlByteStream()
getDescriptorByteStream
public ByteArrayOutputStream getDescriptorByteStream()
getSourceAttachmentsDirForCopying
protected List getSourceAttachmentsDirForCopying()
getSourceTemplateDirForCopying
protected List getSourceTemplateDirForCopying()
- Specified by:
getSourceTemplateDirForCopying
in class AbstractXmlExporter
getHandlesOfObjectsForExport
protected List getHandlesOfObjectsForExport()
throws ImportExportException
- Specified by:
getHandlesOfObjectsForExport
in class AbstractXmlExporter
- Throws:
ImportExportException
convertObjectToHandle
public Object convertObjectToHandle(Object object)
convertHandleToObject
public Object convertHandleToObject(Object handle)
doExport
public String doExport(ProgressMeter progress)
throws ImportExportException
- Specified by:
doExport
in class Exporter
- Throws:
ImportExportException
getExportDirectory
protected File getExportDirectory()
throws ImportExportException
- Description copied from class:
AbstractExporterImpl
- Create a temp directory to store files used to build an export zip. Throw an error if this folder cannot be
created
- Overrides:
getExportDirectory
in class AbstractExporterImpl
- Returns:
- the absolute path to the export directory
- Throws:
ImportExportException
- if the directory can't be created