public class FinishablePrintWriter extends PrintWriter implements Finishable
PrintWriter
with an added out
Constructor and Description |
---|
FinishablePrintWriter(OutputStream out,
String characterEncoding,
boolean autoFlush)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
finish()
Calls
Finishable.finish() on the underlying output stream. |
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
public FinishablePrintWriter(OutputStream out, String characterEncoding, boolean autoFlush) throws IOException
out
- The wrapped output stream.characterEncoding
- The character encoding of the output stream.autoFlush
- Automatically flush after every println.IOException
- Thrown by underlying stream.public void finish() throws IOException
Finishable.finish()
on the underlying output stream.
A no-op if the underlying output stream does not implement the Finishable
interface.
finish
in interface Finishable
IOException
- Thrown by underlying stream.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.