public class HttpOutput
extends javax.servlet.ServletOutputStream
 Implements  ServletOutputStream from the javax.servlet package.   
 
ServletOutputStream implementation that writes content
 to a AbstractGenerator.   The class is designed to be reused
 and can be reopened after a close.| Modifier and Type | Field and Description | 
|---|---|
protected AbstractHttpConnection | 
_connection  | 
protected AbstractGenerator | 
_generator  | 
| Constructor and Description | 
|---|
HttpOutput(AbstractHttpConnection connection)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()  | 
void | 
flush()  | 
int | 
getMaxIdleTime()  | 
boolean | 
isClosed()  | 
boolean | 
isWritten()  | 
void | 
print(String s)  | 
void | 
reopen()  | 
void | 
write(byte[] b)  | 
void | 
write(byte[] b,
     int off,
     int len)  | 
void | 
write(int b)  | 
protected final AbstractHttpConnection _connection
protected final AbstractGenerator _generator
public HttpOutput(AbstractHttpConnection connection)
public int getMaxIdleTime()
public boolean isWritten()
public void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic boolean isClosed()
public void reopen()
public void flush()
           throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void write(byte[] b,
         int off,
         int len)
           throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
           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.ServletOutputStreamIOExceptionCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.