Class FinishablePrintWriter

java.lang.Object
java.io.Writer
java.io.PrintWriter
org.apache.juneau.rest.util.FinishablePrintWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable, Finishable

public class FinishablePrintWriter extends PrintWriter implements Finishable
A wrapped PrintWriter with an added finish() method.
See Also:
  • Constructor Details

    • FinishablePrintWriter

      public FinishablePrintWriter(OutputStream out, String characterEncoding, boolean autoFlush) throws IOException
      Constructor.
      Parameters:
      out - The wrapped output stream.
      characterEncoding - The character encoding of the output stream.
      autoFlush - Automatically flush after every println.
      Throws:
      IOException - Thrown by underlying stream.
  • Method Details