public class CssCompressor extends Object
| Constructor and Description |
|---|
CssCompressor(Reader in) |
| Modifier and Type | Method and Description |
|---|---|
void |
compress(Writer out,
int linebreakpos) |
protected String |
preserveToken(String css,
String preservedToken,
String tokenRegex,
boolean removeWhiteSpace,
ArrayList preservedTokens) |
public CssCompressor(Reader in) throws IOException
IOExceptionprotected String preserveToken(String css, String preservedToken, String tokenRegex, boolean removeWhiteSpace, ArrayList preservedTokens)
css - - full css stringpreservedToken - - token to preservetokenRegex - - regex to find tokenremoveWhiteSpace - - remove any white space in the tokenpreservedTokens - - array of token valuespublic void compress(Writer out, int linebreakpos) throws IOException
IOException5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.