- All Superinterfaces:
Minify.ShallowConfig
- Enclosing class:
Minify
Configuration of normal minification.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Charset
Get the encoding of the style sheet.default boolean
isDisabledShorthand
(String name) Check whether the optimization of the given shorthand is disabled.default void
serializeSelectors
(SelectorList selectors, StringBuilder buffer) Serialize the given selector list to the buffer.default void
serializeValue
(String property, String value, StringBuilder buffer) Customize the serialization of a property (or descriptor) value.default boolean
validate()
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
null
ifUTF-8
.
-
isDisabledShorthand
Check whether the optimization of the given shorthand is disabled.- Parameters:
name
- the lower case shorthand name.- Returns:
true
if 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:
true
if the parser should validate function values.
-