public class SimpleExportProcessor extends BaseExportProcessor
EXPORT_INFO_DATE_FORMAT, EXPORT_INFO_TIME_FORMAT, EXPORT_MANIFEST_FILENAME, EXPORT_TEMP_FILENAME_EXT, EXPORT_TEMP_FILENAME_PREFIX, LOCALE_EXT
Constructor and Description |
---|
SimpleExportProcessor(String path,
IUnifiedRepository repository)
Encapsulates the logic of registering import handlers, generating the manifest, and performing the export
|
Modifier and Type | Method and Description |
---|---|
void |
exportDirectory(RepositoryFile repositoryDir,
OutputStream outputStream,
String filePath) |
void |
exportFile(RepositoryFile repositoryFile,
OutputStream outputStream,
String filePath) |
File |
performExport(RepositoryFile exportRepositoryFile)
Performs the export process, returns a File object
|
addExportHandler, getPath, getUnifiedRepository, setPath, setUnifiedRepository
public SimpleExportProcessor(String path, IUnifiedRepository repository)
public File performExport(RepositoryFile exportRepositoryFile) throws ExportException, IOException
performExport
in class BaseExportProcessor
ExportException
- indicates an error in import processingIOException
public void exportDirectory(RepositoryFile repositoryDir, OutputStream outputStream, String filePath) throws ExportException, IOException
exportDirectory
in class BaseExportProcessor
repositoryDir
- outputStream
- ExportException
IOException
public void exportFile(RepositoryFile repositoryFile, OutputStream outputStream, String filePath) throws ExportException, IOException
exportFile
in class BaseExportProcessor
repositoryFile
- outputStream
- ExportException
IOException
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.