Package org.nuiton.eugene.writer
Class FileGrabberFromClassPath
- java.lang.Object
-
- org.nuiton.eugene.writer.FileGrabberFromClassPath
-
- All Implemented Interfaces:
FileGrabber
public class FileGrabberFromClassPath extends Object implements FileGrabber
Created on 5/24/15.- Since:
- 3.0
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Constructor Summary
Constructors Constructor Description FileGrabberFromClassPath(ChainedFileWriterConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilesToTreate(File extractDirectory, String inputDirectory, Set<String> includePatterns, ChainedFileWriterData result)protected FileextractFileFromClassPath(File extractDirectory, URL url)protected URLgetAssociatedResource(URL file)protected List<URL>getFiles(String inputPath, Set<String> includePattern)
-
-
-
Constructor Detail
-
FileGrabberFromClassPath
public FileGrabberFromClassPath(ChainedFileWriterConfiguration configuration)
-
-
Method Detail
-
addFilesToTreate
public void addFilesToTreate(File extractDirectory, String inputDirectory, Set<String> includePatterns, ChainedFileWriterData result) throws IOException
- Specified by:
addFilesToTreatein interfaceFileGrabber- Throws:
IOException
-
getAssociatedResource
protected URL getAssociatedResource(URL file) throws IOException
- Throws:
IOException
-
extractFileFromClassPath
protected File extractFileFromClassPath(File extractDirectory, URL url) throws IOException
- Throws:
IOException
-
-