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, println
write
public FinishableServletOutputStream(OutputStream os)
os
- The wrapped output stream.public final void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public final void write(int b) throws IOException
write
in class OutputStream
IOException
public final void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public final void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public boolean isReady()
isReady
in class ServletOutputStream
public void setWriteListener(WriteListener arg0)
setWriteListener
in class ServletOutputStream
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.