Package net.sf.statcvs.output
Class LocalFileCssHandler
- java.lang.Object
-
- net.sf.statcvs.output.LocalFileCssHandler
-
- All Implemented Interfaces:
CssHandler
public class LocalFileCssHandler extends java.lang.Object implements CssHandler
CSS handler for a local CSS file which will be copied to the output dir.- Author:
- Richard Cyganiak
-
-
Constructor Summary
Constructors Constructor Description LocalFileCssHandler(java.lang.String filename)
Creates a new LocalFileCssHandler for a given CSS file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkForMissingResources()
Checks if the local CSS file existsvoid
createOutputFiles()
Copies the local CSS file to 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
-
-
-
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
Checks if the local CSS file exists- Specified by:
checkForMissingResources
in interfaceCssHandler
- Throws:
ConfigurationException
- if the file is not found- See Also:
CssHandler.checkForMissingResources()
-
createOutputFiles
public void createOutputFiles() throws java.io.IOException
Copies the local CSS file to 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
-
-