public class FinishableServletOutputStream extends ServletOutputStream implements Finishable
ServletOutputStream with an added | Constructor and Description |
|---|
FinishableServletOutputStream(OutputStream os)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
finish()
Calls
Finishable.finish() on the underlying output stream. |
void |
flush() |
boolean |
isReady() |
void |
setWriteListener(WriteListener arg0) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnwritepublic FinishableServletOutputStream(OutputStream os)
os - The wrapped output stream.public final void write(byte[] b, int off, int len) throws IOException
write in class OutputStreamIOExceptionpublic final void write(int b) throws IOException
write in class OutputStreamIOExceptionpublic final void flush() throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic final void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic boolean isReady()
isReady in class ServletOutputStreampublic void setWriteListener(WriteListener arg0)
setWriteListener in class ServletOutputStreampublic 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 FinishableIOException - Thrown by underlying stream.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.