ISourceFileLocator
public class DirectorySourceFileLocator extends InputStreamSourceFileLocator
Constructor | Description |
---|---|
DirectorySourceFileLocator(java.io.File directory,
java.lang.String encoding,
int tabWidth) |
Creates a new locator that searches for source files in the given
directory.
|
Modifier and Type | Method | Description |
---|---|---|
protected java.io.InputStream |
getSourceStream(java.lang.String path) |
Tries to locate the given source file and opens its binary content.
|
getSourceFile, getTabWidth
public DirectorySourceFileLocator(java.io.File directory, java.lang.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 java.io.InputStream getSourceStream(java.lang.String path) throws java.io.IOException
InputStreamSourceFileLocator
getSourceStream
in class InputStreamSourceFileLocator
path
- local path to the resourcenull
otherwisejava.io.IOException
- in case of problems while opening the streamCopyright © 2018. All rights reserved.