Modifier and Type | Class and Description |
---|---|
static interface |
CandidateLoader.ErrorHandler
Handler for reporting errors from the CandidateLoader.
|
static class |
CandidateLoader.LoggingErrorHandler
Error handler that logs errors to a text stream.
|
Constructor and Description |
---|
CandidateLoader(TCK tck,
ClassLoader classloader,
CandidateLoader.ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
void |
loadFrom(InputStream inputStream) |
void |
loadFromResource(Class cls,
String resource)
Load a candidate property file
|
public CandidateLoader(TCK tck, ClassLoader classloader, CandidateLoader.ErrorHandler errorHandler)
tck
- TCK that will use the candidatesclassloader
- ClassLoader from which candidates classes are loadederrorHandler
- Handler called in case of errorpublic void loadFrom(InputStream inputStream) throws IOException
inputStream
- Stream containing the propertiesIOException
- If something goes wrong while reading the streampublic void loadFromResource(Class cls, String resource) throws IOException
cls
- Class on which getResourceAsStream
is calledresource
- File nameIOException
- If there's problem reading the fileCopyright © 2006–2015 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All rights reserved.