public interface IFileContentProvider
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile(java.io.File directory,
java.lang.String fileName) |
java.lang.String |
getFileContent(java.io.File directory,
java.lang.String fileName)
Returns the content of the file described by the parameter
filename . |
java.lang.String getFileContent(java.io.File directory, java.lang.String fileName) throws java.io.IOException
Returns the content of the file described by the parameter
filename
. The content may be necessary in the process of
parsing referenced definition files, for example.
If the filename
is relative and not absolute the
implementing class is responsible to resolve its position.
directory
- the directory to search the filefileName
- the name of file without file extensionjava.io.IOException
- when the given file cannot be foundjava.io.File getFile(java.io.File directory, java.lang.String fileName) throws java.io.IOException
java.io.IOException