@Immutable public final class CSSCompressor extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getCompressedCSS(String sOriginalCSS,
ECSSVersion eCSSVersion)
Get the compressed version of the passed CSS code.
|
static String |
getCompressedCSS(String sOriginalCSS,
ECSSVersion eCSSVersion,
boolean bRemoveUnnecessaryCode)
Get the compressed version of the passed CSS code.
|
static String |
getRewrittenCSS(String sOriginalCSS,
CSSWriterSettings aSettings)
Get the rewritten version of the passed CSS code.
|
@Nonnull public static String getCompressedCSS(@Nonnull String sOriginalCSS, @Nonnull ECSSVersion eCSSVersion)
sOriginalCSS - The original CSS code to be compressed.eCSSVersion - The CSS version to use.@Nonnull public static String getCompressedCSS(@Nonnull String sOriginalCSS, @Nonnull ECSSVersion eCSSVersion, boolean bRemoveUnnecessaryCode)
sOriginalCSS - The original CSS code to be compressed.eCSSVersion - The CSS version to use.bRemoveUnnecessaryCode - if true unnecessary empty declarations are omitted@Nonnull public static String getRewrittenCSS(@Nonnull String sOriginalCSS, @Nonnull CSSWriterSettings aSettings)
sOriginalCSS - The original CSS code to be compressed.aSettings - The CSS writer settings to use. The version is used to read the
original CSS.Copyright © 2014–2022 Philip Helger. All rights reserved.