Package net.sf.statcvs.output
Class LocalFileCssHandler
java.lang.Object
net.sf.statcvs.output.LocalFileCssHandler
- All Implemented Interfaces:
CssHandler
CSS handler for a local CSS file which will be copied to the output dir.
- Author:
- Richard Cyganiak
-
Constructor Summary
ConstructorsConstructorDescriptionLocalFileCssHandler(String filename) Creates a new LocalFileCssHandler for a given CSS file. -
Method Summary
-
Constructor Details
-
LocalFileCssHandler
Creates a new LocalFileCssHandler for a given CSS file. The filename can be absoulte or relative.- Parameters:
filename- Name of the CSS file
-
-
Method Details
-
getLink
Description copied from interface:CssHandlerreturns a link to the CSS file, which can be used as the HREF in HTML's <LINK REL="stylesheet"> HREF="filename.css";.- Specified by:
getLinkin interfaceCssHandler- Returns:
- a link to the CSS file
- See Also:
-
checkForMissingResources
Checks if the local CSS file exists- Specified by:
checkForMissingResourcesin interfaceCssHandler- Throws:
ConfigurationException- if the file is not found- See Also:
-
createOutputFiles
Copies the local CSS file to the output directory- Specified by:
createOutputFilesin interfaceCssHandler- Throws:
IOException- if an output file can't be created- See Also:
-
toString
toString
-