Class DefaultCssHandler
java.lang.Object
net.sf.statcvs.output.DefaultCssHandler
- All Implemented Interfaces:
CssHandler
CSS handler for a CSS file included in the distribution JAR file.
- Author:
- Richard Cyganiak
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCssHandler(String filename) Creates a new DefaultCssHandler for a CSS file in the/src/net/sf/statcvs/web-files/folder of the distribution JAR. -
Method Summary
Modifier and TypeMethodDescriptionvoidNo external resources are necessary for default CSS files, so nothing is done herevoidExtracts the CSS file from the distribution JAR and saves it into the output directorygetLink()returns a link to the CSS file, which can be used as the HREF in HTML's <LINK REL="stylesheet"invalid input: '>' HREF="filename.css";.toString()toString
-
Constructor Details
-
DefaultCssHandler
Creates a new DefaultCssHandler for a CSS file in the/src/net/sf/statcvs/web-files/folder of the distribution JAR. This must be a filename only, without a directory.- 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"invalid input: '>' HREF="filename.css";.- Specified by:
getLinkin interfaceCssHandler- Returns:
- a link to the CSS file
- See Also:
-
checkForMissingResources
No external resources are necessary for default CSS files, so nothing is done here- Specified by:
checkForMissingResourcesin interfaceCssHandler- Throws:
ConfigurationException- if some resource is missing.- See Also:
-
createOutputFiles
Extracts the CSS file from the distribution JAR and saves it into the output directory- Specified by:
createOutputFilesin interfaceCssHandler- Throws:
IOException- if an output file can't be created- See Also:
-
toString
-