public class PortletServletOutputStream
extends javax.servlet.ServletOutputStream
OutputStream from a portlet as a ServletOutputStream instance.
Clients accessing this stream object will in fact operate on the
OutputStream object wrapped by this stream object.| Constructor and Description |
|---|
PortletServletOutputStream(OutputStream portletOutputStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
OutputStream |
getOutputStream()
Get the wrapped
OutputStream instance. |
boolean |
isReady() |
void |
setWriteListener(javax.servlet.WriteListener writeListener) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int ch) |
public PortletServletOutputStream(OutputStream portletOutputStream)
public void write(int ch)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic OutputStream getOutputStream()
OutputStream instance.OutputStream instance.public boolean isReady()
isReady in class javax.servlet.ServletOutputStreampublic void setWriteListener(javax.servlet.WriteListener writeListener)
setWriteListener in class javax.servlet.ServletOutputStreamCopyright © 2000–2024 Apache Software Foundation. All rights reserved.