Class CompositeJavaScriptCompressor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CompositeJavaScriptCompressor add​(IJavaScriptCompressor compressor)
      Adds a IJavaScriptCompressor to the list of delegates.
      java.lang.String compress​(java.lang.String original)
      Remove comments and white spaces from the text resource
      java.lang.String process​(java.lang.String input, java.lang.Class<?> scope, java.lang.String name)
      Compresses the given original content in the order of compressors.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • process

        public java.lang.String process​(java.lang.String input,
                                        java.lang.Class<?> scope,
                                        java.lang.String name)
        Compresses the given original content in the order of compressors. If no compressor has been given the original content is going to be returned.
        Specified by:
        process in interface IScopeAwareTextResourceProcessor
        Parameters:
        input - The original input to process
        scope - The scope class of the package resource
        name - The name of the package resource
        Returns:
        The processed input
      • compress

        public java.lang.String compress​(java.lang.String original)
        Description copied from interface: ITextResourceCompressor
        Remove comments and white spaces from the text resource
        Specified by:
        compress in interface ITextResourceCompressor
        Returns:
        compressed text resource