public class HttpOutput
extends javax.servlet.ServletOutputStream
HttpOutput implements ServletOutputStream
as required by the Servlet specification.
HttpOutput buffers content written by the application until a
further write will overflow the buffer, at which point it triggers a commit
of the response.
HttpOutput can be closed and reopened, to allow requests included
via RequestDispatcher.include(ServletRequest, ServletResponse) to
close the stream, to be reopened after the inclusion ends.
| Constructor and Description |
|---|
HttpOutput(HttpChannel<?> channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
closeIfAllContentWritten() |
void |
flush() |
int |
getBufferSize() |
long |
getWritten() |
boolean |
isClosed() |
boolean |
isWritten() |
void |
print(String s) |
void |
reopen() |
void |
reset() |
void |
resetBuffer() |
void |
sendContent(Object content) |
void |
setBufferSize(int size) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
print, print, print, print, print, print, println, println, println, println, println, println, println, printlnwritepublic HttpOutput(HttpChannel<?> channel)
public boolean isWritten()
public long getWritten()
public void reset()
public void reopen()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic boolean isClosed()
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic boolean closeIfAllContentWritten()
throws IOException
IOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void print(String s) throws IOException
print in class javax.servlet.ServletOutputStreamIOExceptionpublic void sendContent(Object content) throws IOException
IOExceptionpublic int getBufferSize()
public void setBufferSize(int size)
public void resetBuffer()
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.