public class ZipSolutionRepositoryImportSource extends AbstractImportSource
ImportSource.IRepositoryFileBundle
Constructor and Description |
---|
ZipSolutionRepositoryImportSource(ZipInputStream zipInputStream,
String charSet)
Creates an Import Source based on a Zip file
|
Modifier and Type | Method and 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
|
getMimeType
public ZipSolutionRepositoryImportSource(ZipInputStream zipInputStream, String charSet) throws InitializationException
zipInputStream
- charSet
- InitializationException
protected void initialize() throws InitializationException
InitializationException
public Iterable<ImportSource.IRepositoryFileBundle> getFiles() throws IOException
ImportSource
Iterator.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)IOException
- indicates an error getting the filespublic int getCount()
Copyright © 2019 Hitachi Vantara. All rights reserved.