public static class AbstractGenerator.Output extends 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 ByteArrayBuffer |
_buf |
protected boolean |
_closed |
protected AbstractGenerator |
_generator |
protected long |
_maxIdleTime |
| Constructor and Description |
|---|
Output(AbstractGenerator generator,
long maxIdleTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
print(String s) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected AbstractGenerator _generator
protected long _maxIdleTime
protected ByteArrayBuffer _buf
protected boolean _closed
public Output(AbstractGenerator generator, long maxIdleTime)
public 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,
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 ServletOutputStreamIOExceptionCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.