public class SourceFileManagerImpl extends Object implements SourceFileManager, FileManager
| Constructor and Description |
|---|
SourceFileManagerImpl(Iterable<File> sources,
Iterable<File> folders) |
| Modifier and Type | Method and Description |
|---|---|
Writer |
createOutput(String path,
long lastModified)
Create new file in output folder. |
File |
getFile(String path)
Get existing file or directory. |
Iterable<File> |
getFiles()
Get collection of all source files for this manager. |
Iterable<File> |
getFolders()
|
public Writer createOutput(String path, long lastModified) throws IOException
FileManagerCreate new file in output folder.
createOutput in interface FileManagerpath - relative path to output file.lastModified - time of last modification of model.lastModified
parameter.IOExceptionpublic File getFile(String path) throws FileNotFoundException
FileManagerGet existing file or directory.
getFile in interface FileManagerFileNotFoundExceptionpublic Iterable<File> getFiles()
FileManagerGet collection of all source files for this manager.
getFiles in interface FileManagerpublic Iterable<File> getFolders()
getFolders in interface FileManagerCopyright © 2014 JBoss by Red Hat. All Rights Reserved.