Class NewlineReductionServletWriter

  • All Implemented Interfaces:

    public class NewlineReductionServletWriter
    extends ServletWriter
    This class filters duplicate newlines instructions from the compiler output, and therefore from the runtime JSP. The duplicates typically happen because the compiler has multiple branches that write them, but they operate independently and don't realize that the previous output was identical. Removing these lines makes the JSP more efficient by executing fewer operations during runtime.
    • Constructor Detail

      • NewlineReductionServletWriter

        public NewlineReductionServletWriter​( writer)
    • Method Detail

      • printil

        public void printil​(java.lang.String s)
        Description copied from class: ServletWriter
        Prints the current indentation, and then the string, and a '\n'.
        printil in class ServletWriter
        s - The string