Class SimpleExportProcessor
- java.lang.Object
-
- org.pentaho.platform.plugin.services.importexport.BaseExportProcessor
-
- org.pentaho.platform.plugin.services.importexport.SimpleExportProcessor
-
public class SimpleExportProcessor extends BaseExportProcessor
This export processor should be used when single file downloads are requested
-
-
Field Summary
-
Fields inherited from class org.pentaho.platform.plugin.services.importexport.BaseExportProcessor
EXPORT_INFO_DATE_FORMAT, EXPORT_INFO_TIME_FORMAT, EXPORT_MANIFEST_FILENAME, EXPORT_TEMP_FILENAME_EXT, EXPORT_TEMP_FILENAME_PREFIX, LOCALE_EXT
-
-
Constructor Summary
Constructors Constructor Description SimpleExportProcessor(String path, org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository)
Encapsulates the logic of registering import handlers, generating the manifest, and performing the export
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exportDirectory(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryDir, OutputStream outputStream, String filePath)
void
exportFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, OutputStream outputStream, String filePath)
File
performExport(org.pentaho.platform.api.repository2.unified.RepositoryFile exportRepositoryFile)
Performs the export process, returns a File object-
Methods inherited from class org.pentaho.platform.plugin.services.importexport.BaseExportProcessor
addExportHandler, getPath, getUnifiedRepository, setPath, setUnifiedRepository
-
-
-
-
Constructor Detail
-
SimpleExportProcessor
public SimpleExportProcessor(String path, org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository)
Encapsulates the logic of registering import handlers, generating the manifest, and performing the export
-
-
Method Detail
-
performExport
public File performExport(org.pentaho.platform.api.repository2.unified.RepositoryFile exportRepositoryFile) throws ExportException, IOException
Performs the export process, returns a File object- Specified by:
performExport
in classBaseExportProcessor
- Throws:
ExportException
- indicates an error in import processingIOException
-
exportDirectory
public void exportDirectory(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryDir, OutputStream outputStream, String filePath) throws ExportException, IOException
- Specified by:
exportDirectory
in classBaseExportProcessor
- Parameters:
repositoryDir
-outputStream
-- Throws:
ExportException
IOException
-
exportFile
public void exportFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, OutputStream outputStream, String filePath) throws ExportException, IOException
- Specified by:
exportFile
in classBaseExportProcessor
- Parameters:
repositoryFile
-outputStream
-- Throws:
ExportException
IOException
-
-