java.lang.Object
io.sf.carte.doc.style.css.util.Minify
Minify a CSS style sheet.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Minify
public Minify()
-
-
Method Details
-
main
Prints to standard output a minification of the CSS style sheet located at the supplied URI.If the given sheet contains error(s) and therefore cannot be reliably minified, the original source sheet is printed.
- Parameters:
args
- the URI to a style sheet.- Throws:
URISyntaxException
- if the URI has wrong syntax.IllegalArgumentException
- if the URI is otherwise incorrect.IOException
- if an I/O error happened.
-
minifyCSS
Minifies a CSS style sheet.- Parameters:
css
- the serialized style sheet.- Returns:
- the minified serialization, or the original one if an error was detected.
-
minifyCSS
Minifies a CSS style sheet.- Parameters:
cssPath
- the path to style sheet.- Returns:
- the minified serialization, or the original file if an error was found.
- Throws:
IOException
-