public class PlainFileContentProvider extends java.lang.Object implements IFileContentProvider
Constructor and Description |
---|
PlainFileContentProvider() |
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 . |
public java.lang.String getFileContent(java.io.File directory, java.lang.String filename) throws java.io.IOException
IFileContentProvider
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.
getFileContent
in interface IFileContentProvider
directory
- the directory to search the filefilename
- the name of file without file extensionjava.io.IOException
- when the given file cannot be foundpublic java.io.File getFile(java.io.File directory, java.lang.String filename) throws java.io.IOException
getFile
in interface IFileContentProvider
java.io.IOException