Interface ImportSource
-
- All Known Implementing Classes:
AbstractImportSource
,DbSolutionRepositoryImportSource
,FileSolutionRepositoryImportSource
,ZipSolutionRepositoryImportSource
public interface ImportSource
A source of files for import operations.- Author:
- mlowery
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ImportSource.IRepositoryFileBundle
A struct-like object for bundling related objects together.
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getFiles
Iterable<ImportSource.IRepositoryFileBundle> getFiles() throws IOException
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
int getCount()
Returns the number of files to process (or -1 if that is not known)
-
-