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, getTabWidthpublic 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
InputStreamSourceFileLocatorgetSourceStream in class InputStreamSourceFileLocatorpath - local path to the resourcenull otherwiseIOException - in case of problems while opening the streamCopyright © 2009-2015 Mountainminds GmbH & Co. KG. All Rights Reserved.