Class ServletWriter

    • Constructor Detail

      • ServletWriter

        public ServletWriter​(PrintWriter writer)
    • Method Detail

      • getJavaLine

        public int getJavaLine()
      • pushIndent

        public void pushIndent()
      • popIndent

        public void popIndent()
      • println

        public void println​(String s)
        Prints the given string followed by '\n'
        Parameters:
        s - The string
      • println

        public void println()
        Prints a '\n'
      • printin

        public void printin()
        Prints the current indention
      • printin

        public void printin​(String s)
        Prints the current indention, followed by the given string
        Parameters:
        s - The string
      • printil

        public void printil​(String s)
        Prints the current indention, and then the string, and a '\n'.
        Parameters:
        s - The string
      • print

        public void print​(char c)
        Prints the given char. Use println() to print a '\n'.
        Parameters:
        c - The char
      • print

        public void print​(int i)
        Prints the given int.
        Parameters:
        i - The int
      • print

        public void print​(String s)
        Prints the given string. The string must not contain any '\n', otherwise the line count will be off.
        Parameters:
        s - The string
      • printMultiLn

        public void printMultiLn​(String s)
        Prints the given string. If the string spans multiple lines, the line count will be adjusted accordingly.
        Parameters:
        s - The string