Package net.sf.statcvs.output
Class DefaultCssHandler
- java.lang.Object
-
- net.sf.statcvs.output.DefaultCssHandler
-
- All Implemented Interfaces:
CssHandler
public class DefaultCssHandler extends java.lang.Object implements CssHandler
CSS handler for a CSS file included in the distribution JAR file.- Author:
- Richard Cyganiak
-
-
Constructor Summary
Constructors Constructor Description DefaultCssHandler(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkForMissingResources()
No external resources are necessary for default CSS files, so nothing is done herevoid
createOutputFiles()
Extracts the CSS file from the distribution JAR and saves it into the output directoryjava.lang.String
getLink()
returns a link to the CSS file, which can be used as the HREF in HTML's <LINK REL="stylesheet"> HREF="filename.css";.java.lang.String
toString()
toString
-
-
-
Constructor Detail
-
DefaultCssHandler
public DefaultCssHandler(java.lang.String filename)
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 Detail
-
getLink
public java.lang.String getLink()
Description copied from interface:CssHandler
returns a link to the CSS file, which can be used as the HREF in HTML's <LINK REL="stylesheet"> HREF="filename.css";.- Specified by:
getLink
in interfaceCssHandler
- Returns:
- a link to the CSS file
- See Also:
CssHandler.getLink()
-
checkForMissingResources
public void checkForMissingResources() throws ConfigurationException
No external resources are necessary for default CSS files, so nothing is done here- Specified by:
checkForMissingResources
in interfaceCssHandler
- Throws:
ConfigurationException
- if some resource is missing.- See Also:
CssHandler.checkForMissingResources()
-
createOutputFiles
public void createOutputFiles() throws java.io.IOException
Extracts the CSS file from the distribution JAR and saves it into the output directory- Specified by:
createOutputFiles
in interfaceCssHandler
- Throws:
java.io.IOException
- if an output file can't be created- See Also:
CssHandler.createOutputFiles()
-
toString
public java.lang.String toString()
toString- Overrides:
toString
in classjava.lang.Object
- Returns:
- string
-
-