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 - chemit@codelutin.com
-
-
Constructor Summary
Constructors Constructor Description FileGrabberFromClassPath(ChainedFileWriterConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFilesToTreate(File extractDirectory, String inputDirectory, Set<String> includePatterns, ChainedFileWriterData result)
protected File
extractFileFromClassPath(File extractDirectory, URL url)
protected URL
getAssociatedResource(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:
addFilesToTreate
in 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
-
-