net.sf.statcvs.output

Class LocalFileCssHandler

Implemented Interfaces:
CssHandler

public class LocalFileCssHandler
extends Object
implements CssHandler

CSS handler for a local CSS file which will be copied to the output dir.
Author:
Richard Cyganiak

Constructor Summary

LocalFileCssHandler(String filename)
Creates a new LocalFileCssHandler for a given CSS file.

Method Summary

void
checkForMissingResources()
Checks if the local CSS file exists
void
createOutputFiles()
Copies the local CSS file to the output directory
String
getLink()
String
toString()
toString

Constructor Details

LocalFileCssHandler

public LocalFileCssHandler(String filename)
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

checkForMissingResources

public void checkForMissingResources()
            throws ConfigurationException
Checks if the local CSS file exists
Specified by:
checkForMissingResources in interface CssHandler
Throws:
ConfigurationException - if the file is not found

createOutputFiles

public void createOutputFiles()
            throws IOException
Copies the local CSS file to the output directory
Specified by:
createOutputFiles in interface CssHandler

getLink

public String getLink()
Specified by:
getLink in interface CssHandler

toString

public String toString()
toString
Returns:
string