public class LocalFileCssHandler extends java.lang.Object implements CssHandler
Constructor and Description |
---|
LocalFileCssHandler(java.lang.String filename)
Creates a new LocalFileCssHandler for a given CSS file.
|
Modifier and Type | Method and Description |
---|---|
void |
checkForMissingResources()
Checks if the local CSS file exists
|
void |
createOutputFiles()
Copies the local CSS file to the output directory
|
java.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
|
public LocalFileCssHandler(java.lang.String filename)
filename
- Name of the CSS filepublic java.lang.String getLink()
CssHandler
getLink
in interface CssHandler
CssHandler.getLink()
public void checkForMissingResources() throws ConfigurationException
checkForMissingResources
in interface CssHandler
ConfigurationException
- if the file is not foundCssHandler.checkForMissingResources()
public void createOutputFiles() throws java.io.IOException
createOutputFiles
in interface CssHandler
java.io.IOException
- if an output file can't be createdCssHandler.createOutputFiles()
public java.lang.String toString()
toString
in class java.lang.Object