com.atlassian.confluence.importexport.impl
Class MemoryXmlExporter

java.lang.Object
  extended by com.atlassian.confluence.importexport.Exporter
      extended by com.atlassian.confluence.importexport.impl.AbstractExporterImpl
          extended by com.atlassian.confluence.importexport.impl.AbstractXmlExporter
              extended by com.atlassian.confluence.importexport.impl.MemoryXmlExporter

public class MemoryXmlExporter
extends AbstractXmlExporter


Field Summary
 
Fields inherited from class com.atlassian.confluence.importexport.impl.AbstractXmlExporter
ATTACHMENTS_DIRECTORY, bootstrapManager, ENTITIES_FILE_NAME, EXPORT_DESCRIPTOR_FILE_NAME, sessionFactory, spaceManager, TEMPLATES_DIRECTORY
 
Fields inherited from class com.atlassian.confluence.importexport.Exporter
context, log
 
Constructor Summary
MemoryXmlExporter()
           
 
Method Summary
 Object convertHandleToObject(Object handle)
           
 Object convertObjectToHandle(Object object)
           
 String doExport(ProgressMeter progress)
           
 ByteArrayOutputStream getDescriptorByteStream()
           
protected  OutputStream getDescriptorOutputStream()
           
protected  File getExportDirectory()
          Create a temp directory to store files used to build an export zip.
protected  List getHandlesOfObjectsForExport()
           
protected  List getSourceAttachmentsDirForCopying()
           
protected  List getSourceTemplateDirForCopying()
           
 ByteArrayOutputStream getXmlByteStream()
           
protected  OutputStream getXmlOutputStream()
          output stream to write XML object information to
 
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 com.atlassian.confluence.importexport.impl.AbstractExporterImpl
checkHaveSomethingToExport, ensureDirectoryCreated, getSpaceKeyForExportFileName, getWorkingExportContext, prepareExportFileName, setExportFileNameGenerator
 
Methods inherited from class com.atlassian.confluence.importexport.Exporter
getContext, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryXmlExporter

public MemoryXmlExporter()
Method Detail

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


Confluence is developed by Atlassian Pty Ltd.