class LocalFileStreamSource implements FileStreamSource {

	public InputStream getNextInputStream() {
		this.closeFileStream();
		
		if (this.currentIndex >= (this.filePaths.size()-1)) return null;
		
		this.currentIndex++;
		String filePath = this.filePaths.get(currentIndex);
		
		File file = new File(filePath);
        try {
        	fileStream = new FileInputStream(file);
        }
        catch(IOException ioe) {
            this.closeFileStream();
            throw new RuntimeException("Failed opening file:"+filePath,ioe);
        }
        
        return fileStream;
	}

	public  LocalFileStreamSource();

}