Class PrintWriterWrapper

java.lang.Object
java.io.Writer
java.io.PrintWriter
com.oracle.truffle.js.runtime.util.PrintWriterWrapper
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public final class PrintWriterWrapper extends PrintWriter
Creation of PrintWriter is expensive, this is why we change just the delegate writer in this wrapper class.
  • Constructor Details

    • PrintWriterWrapper

      public PrintWriterWrapper(OutputStream out, boolean autoFlush, Charset charset)
  • Method Details