Class WhitespaceManagingPrintWriter

java.lang.Object
java.io.Writer
java.io.PrintWriter
ortus.boxlang.web.exchange.WhitespaceManagingPrintWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class WhitespaceManagingPrintWriter extends PrintWriter
  • Constructor Details

    • WhitespaceManagingPrintWriter

      public WhitespaceManagingPrintWriter(Writer out, boolean enable)
  • Method Details

    • write

      public void write(int c)
      Overrides:
      write in class PrintWriter
    • write

      public void write(char[] buf, int off, int len)
      Overrides:
      write in class PrintWriter
    • write

      public void write(String s, int off, int len)
      Overrides:
      write in class PrintWriter
    • flush

      public void flush()
      Specified by:
      flush in interface Flushable
      Overrides:
      flush in class PrintWriter
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class PrintWriter
    • isWhitespaceCompressionEnabled

      public boolean isWhitespaceCompressionEnabled()
      Get the current state of the whitespace compression flag
    • setWhitespaceCompressionEnabled

      public void setWhitespaceCompressionEnabled(boolean enable)
      Set the whitespace compression flag