Class FileSolutionRepositoryImportSource
- java.lang.Object
-
- org.pentaho.platform.plugin.services.importexport.legacy.AbstractImportSource
-
- org.pentaho.platform.plugin.services.importexport.legacy.FileSolutionRepositoryImportSource
-
- All Implemented Interfaces:
ImportSource
public class FileSolutionRepositoryImportSource 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 FileSolutionRepositoryImportSource(File sourceFile, String charSet)
FileSolutionRepositoryImportSource(File sourceFile, String filename, String charSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addFileToList(File currentFile, boolean extractFilename)
int
getCount()
Returns the number of files to process (or -1 if that is not known)protected ImportSource.IRepositoryFileBundle
getFile(File currentFile, String filename)
Iterable<ImportSource.IRepositoryFileBundle>
getFiles()
Returns the set of files available by this Import Source.protected String
getRepositoryPath(File currentFile)
-
Methods inherited from class org.pentaho.platform.plugin.services.importexport.legacy.AbstractImportSource
getMimeType
-
-
-
-
Method Detail
-
getFiles
public Iterable<ImportSource.IRepositoryFileBundle> getFiles()
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)
-
getCount
public int getCount()
Returns the number of files to process (or -1 if that is not known)
-
addFileToList
protected void addFileToList(File currentFile, boolean extractFilename)
-
getFile
protected ImportSource.IRepositoryFileBundle getFile(File currentFile, String filename)
-
-