|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sparql.benchmarking.loader.AbstractOperationLoader
public abstract class AbstractOperationLoader
Abstract operation loader that provides useful protected methods for loader implementations
Constructor Summary | |
---|---|
AbstractOperationLoader()
|
Method Summary | |
---|---|
protected InputStream |
getInputStream(File baseDir,
String filename)
Gets an input stream for the given file |
static OperationLoaderArgument |
getNameArgument(boolean optional)
Gets the standard argument for the friendly name |
protected String |
readFile(File baseDir,
String filename)
Try to read in a given file as UTF-8 content |
protected File |
resolveFile(File baseDir,
String filename)
Resolves a file to see if it a valid file that exists either on disk or in the class path |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.sparql.benchmarking.loader.OperationLoader |
---|
getArguments, getDescription, getPreferredName, load |
Constructor Detail |
---|
public AbstractOperationLoader()
Method Detail |
---|
protected String readFile(File baseDir, String filename) throws FileNotFoundException, IOException
baseDir
- Base directoryfilename
- Filename
FileNotFoundException
IOException
protected InputStream getInputStream(File baseDir, String filename) throws FileNotFoundException, IOException
baseDir
- Base directoryfilename
- Filename
FileNotFoundException
IOException
protected File resolveFile(File baseDir, String filename) throws FileNotFoundException
file
- File to resolve
FileNotFoundException
- Thrown if the file cannot be resolvedpublic static OperationLoaderArgument getNameArgument(boolean optional)
optional
- Whether the friendly name is optional
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |