public class FinishableServletOutputStream extends javax.servlet.ServletOutputStream implements Finishable
ServletOutputStream
with an added finish()
method.Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finish()
Calls
Finishable.finish() on the underlying output stream. |
void |
flush() |
boolean |
isReady() |
void |
setWriteListener(javax.servlet.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 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 javax.servlet.ServletOutputStream
public void setWriteListener(javax.servlet.WriteListener arg0)
setWriteListener
in class javax.servlet.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
Copyright © 2018 Apache. All rights reserved.