Class AbstractSourceLoader
java.lang.Object
org.eluder.coveralls.maven.plugin.source.AbstractSourceLoader
- All Implemented Interfaces:
SourceLoader
- Direct Known Subclasses:
DirectorySourceLoader, ScanSourceLoader, UrlSourceLoader
The Class AbstractSourceLoader.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSourceLoader(URI base, URI sourceBase, Charset sourceEncoding) Instantiates a new abstract source loader. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetFileName(String sourceFile) Gets the file name.protected CharsetGets the source encoding.Load.protected abstract InputStreamLocate.
-
Constructor Details
-
AbstractSourceLoader
-
-
Method Details
-
load
Description copied from interface:SourceLoaderLoad.- Specified by:
loadin interfaceSourceLoader- Parameters:
sourceFile- the source file- Returns:
- the source
- Throws:
IOException- Signals that an I/O exception has occurred.
-
getSourceEncoding
-
getFileName
-
locate
Locate.- Parameters:
sourceFile- the source file- Returns:
- the input stream
- Throws:
IOException- Signals that an I/O exception has occurred.
-