public class DirectorySourceFileLocator extends InputStreamSourceFileLocator
Constructor and Description |
---|
DirectorySourceFileLocator(File directory,
String encoding,
int tabWidth)
Creates a new locator that searches for source files in the given
directory.
|
Modifier and Type | Method and Description |
---|---|
protected InputStream |
getSourceStream(String path)
Tries to locate the given source file and opens its binary content.
|
getSourceFile, getTabWidth
public DirectorySourceFileLocator(File directory, String encoding, int tabWidth)
directory
- directory to search for source fileencoding
- encoding of the source files, null
for platform
default encodingtabWidth
- tab width in source files as number of blanksprotected InputStream getSourceStream(String path) throws IOException
InputStreamSourceFileLocator
getSourceStream
in class InputStreamSourceFileLocator
path
- local path to the resourcenull
otherwiseIOException
- in case of problems while opening the streamCopyright © 2012. All Rights Reserved.