public class FileResourceFinder extends Object implements ResourceFinder
ResourceFinder implementation that maps file name to File instances. This class is the default implementation for all
systems operating with a standard JVM environment.| Constructor and Description |
|---|
FileResourceFinder() |
| Modifier and Type | Method and Description |
|---|---|
BufferedReader |
open(String fileName)
Finds the file with the specified name and returns a reader for that
files contents.
|
public BufferedReader open(String fileName) throws IOException
open in interface ResourceFinderfileName - the name of a fileBufferedReader to the contents of the specified fileIOException - if the resource cannot be found or if an error occurs
while opening the resourceCopyright © 2012. All Rights Reserved.