Class SpincastCssYuiCompressorManagerDefault

java.lang.Object
org.spincast.plugins.cssyuicompressor.SpincastCssYuiCompressorManagerDefault
All Implemented Interfaces:
SpincastCssYuiCompressorManager

public class SpincastCssYuiCompressorManagerDefault extends Object implements SpincastCssYuiCompressorManager
  • Constructor Details

    • SpincastCssYuiCompressorManagerDefault

      public SpincastCssYuiCompressorManagerDefault()
  • Method Details

    • minify

      public void minify(File cssFile)
      Description copied from interface: SpincastCssYuiCompressorManager
      Minify the specified CSS file.

      Use UTF-8 as the encoding.

      Specified by:
      minify in interface SpincastCssYuiCompressorManager
    • minify

      public void minify(File cssFile, int lineBreakPos)
      Description copied from interface: SpincastCssYuiCompressorManager
      Minify the specified CSS file.

      Use UTF-8 as the encoding.

      Specified by:
      minify in interface SpincastCssYuiCompressorManager
      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

      public void minify(File cssFile, Charset encoding)
      Description copied from interface: SpincastCssYuiCompressorManager
      Minify the specified CSS file.
      Specified by:
      minify in interface SpincastCssYuiCompressorManager
    • minify

      public void minify(File cssFile, Charset encoding, int lineBreakPos)
      Description copied from interface: SpincastCssYuiCompressorManager
      Minify the specified CSS file.
      Specified by:
      minify in interface SpincastCssYuiCompressorManager
      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

      public String minify(String cssContent)
      Description copied from interface: SpincastCssYuiCompressorManager
      Minify the specified CSS String.
      Specified by:
      minify in interface SpincastCssYuiCompressorManager
    • minify

      public String minify(String cssContent, int lineBreakPos)
      Description copied from interface: SpincastCssYuiCompressorManager
      Minify the specified CSS String.
      Specified by:
      minify in interface SpincastCssYuiCompressorManager
      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.