Interface SpincastCssYuiCompressorManager

All Known Implementing Classes:
SpincastCssYuiCompressorManagerDefault

public interface SpincastCssYuiCompressorManager
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    minify(File cssFile)
    Minify the specified CSS file.
    void
    minify(File cssFile, int lineBreakPos)
    Minify the specified CSS file.
    void
    minify(File cssFile, Charset encoding)
    Minify the specified CSS file.
    void
    minify(File cssFile, Charset encoding, int lineBreakPos)
    Minify the specified CSS file.
    minify(String cssContent)
    Minify the specified CSS String.
    minify(String cssContent, int lineBreakPos)
    Minify the specified CSS String.
  • Method Details

    • minify

      String minify(String cssContent)
      Minify the specified CSS String.
    • minify

      String minify(String cssContent, int lineBreakPos)
      Minify the specified CSS String.
      Parameters:
      lineBreakPos - From the YUI Compressor documentation:
       Some source control tools don't like files containing lines longer than,
       say 8000 characters. The linebreak option is used in that case to split
       long lines after a specific column. It can also be used to make the code
       more readable, easier to debug (especially with the MS Script Debugger)
       Specify 0 to get a line break after each semi-colon in JavaScript, and
       after each rule in CSS.
       
    • minify

      void minify(File cssFile)
      Minify the specified CSS file.

      Use UTF-8 as the encoding.

    • minify

      void minify(File cssFile, int lineBreakPos)
      Minify the specified CSS file.

      Use UTF-8 as the encoding.

      Parameters:
      lineBreakPos - From the YUI Compressor documentation:
       Some source control tools don't like files containing lines longer than,
       say 8000 characters. The linebreak option is used in that case to split
       long lines after a specific column. It can also be used to make the code
       more readable, easier to debug (especially with the MS Script Debugger)
       Specify 0 to get a line break after each semi-colon in JavaScript, and
       after each rule in CSS.
       
    • minify

      void minify(File cssFile, Charset encoding)
      Minify the specified CSS file.
    • minify

      void minify(File cssFile, Charset encoding, int lineBreakPos)
      Minify the specified CSS file.
      Parameters:
      lineBreakPos - From the YUI Compressor documentation:
       Some source control tools don't like files containing lines longer than,
       say 8000 characters. The linebreak option is used in that case to split
       long lines after a specific column. It can also be used to make the code
       more readable, easier to debug (especially with the MS Script Debugger)
       Specify 0 to get a line break after each semi-colon in JavaScript, and
       after each rule in CSS.