org.mortbay.jetty
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 |
|---|
AbstractGenerator.Output(AbstractGenerator generator,
long maxIdleTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
print(java.lang.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 AbstractGenerator.Output(AbstractGenerator generator, long maxIdleTime)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void print(java.lang.String s)
throws java.io.IOException
print in class ServletOutputStreamjava.io.IOExceptionCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.