com.yahoo.platform.yui.compressor

## Class CssCompressor

- java.lang.Object
- - com.yahoo.platform.yui.compressor.CssCompressor

-     public class CssCompressor
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CssCompressor(Reader in)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CssCompressor

          public CssCompressor(Reader in)
                        throws IOException

      Throws:
        `IOException`

  - ### Method Detail

    - #### preserveToken

          protected String preserveToken(String css,
                                         String preservedToken,
                                         String tokenRegex,
                                         boolean removeWhiteSpace,
                                         ArrayList preservedTokens)

      Parameters:
        `css` - - full css string
        `preservedToken` - - token to preserve
        `tokenRegex` - - regex to find token
        `removeWhiteSpace` - - remove any white space in the token
        `preservedTokens` - - array of token values
      Returns:

    - #### compress

          public void compress(Writer out,
                               int linebreakpos)
                        throws IOException

      Throws:
        `IOException`

5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.