Class ZipSolutionRepositoryImportSource
- java.lang.Object
-
- org.pentaho.platform.plugin.services.importexport.legacy.AbstractImportSource
-
- org.pentaho.platform.plugin.services.importexport.legacy.ZipSolutionRepositoryImportSource
-
- All Implemented Interfaces:
ImportSource
public class ZipSolutionRepositoryImportSource extends AbstractImportSource
- Author:
- wseyler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.pentaho.platform.plugin.services.importexport.ImportSource
ImportSource.IRepositoryFileBundle
-
-
Constructor Summary
Constructors Constructor Description ZipSolutionRepositoryImportSource(ZipInputStream zipInputStream, String charSet)
Creates an Import Source based on a Zip file
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
Returns the number of files to process (or -1 if that is not known)Iterable<ImportSource.IRepositoryFileBundle>
getFiles()
Returns the set of files available by this Import Source.protected void
initialize()
Initializes the ImportSource - it will read the zip input stream and create the list of files-
Methods inherited from class org.pentaho.platform.plugin.services.importexport.legacy.AbstractImportSource
getMimeType
-
-
-
-
Constructor Detail
-
ZipSolutionRepositoryImportSource
public ZipSolutionRepositoryImportSource(ZipInputStream zipInputStream, String charSet) throws InitializationException
Creates an Import Source based on a Zip file- Parameters:
zipInputStream
-charSet
-- Throws:
InitializationException
-
-
Method Detail
-
initialize
protected void initialize() throws InitializationException
Initializes the ImportSource - it will read the zip input stream and create the list of files- Throws:
InitializationException
-
getFiles
public Iterable<ImportSource.IRepositoryFileBundle> getFiles() throws IOException
Description copied from interface:ImportSource
Returns the set of files available by this Import Source. NOTE: the Iterable object MUST support theIterator.remove()
method as the consumer of this information will be iterating over the data and will remove items that they process (and shouldn't be processed by down-stream consumers)- Throws:
IOException
- indicates an error getting the files
-
getCount
public int getCount()
Returns the number of files to process (or -1 if that is not known)
-
-