- All Superinterfaces:
Minify.ShallowConfig
- Enclosing class:
Minify
Configuration of normal minification.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CharsetGet the encoding of the style sheet.default booleanisDisabledShorthand(String name) Check whether the optimization of the given shorthand is disabled.default voidserializeSelectors(SelectorList selectors, StringBuilder buffer) Serialize the given selector list to the buffer.default voidserializeValue(String property, String value, StringBuilder buffer) Customize the serialization of a property (or descriptor) value.default booleanvalidate()Validate function values.Methods inherited from interface io.sf.carte.doc.style.css.util.Minify.ShallowConfig
getPreserveCommentChar
-
Method Details
-
getEncoding
Get the encoding of the style sheet.- Returns:
- the encoding, or
nullifUTF-8.
-
isDisabledShorthand
Check whether the optimization of the given shorthand is disabled.- Parameters:
name- the lower case shorthand name.- Returns:
trueif the shorthand should not be optimized.
-
serializeSelectors
Serialize the given selector list to the buffer.- Parameters:
selectors- the selector list.buffer- the destination buffer.
-
serializeValue
Customize the serialization of a property (or descriptor) value.- Parameters:
property- the property/descriptor name.value- the suggested minified serialization of the value.buffer- the destination buffer.
-
validate
default boolean validate()Validate function values.- Returns:
trueif the parser should validate function values.
-