com.caucho.server.connection
Class StreamWrapperResponseStream
java.lang.Object
java.io.OutputStream
com.caucho.vfs.OutputStreamWithBuffer
com.caucho.server.connection.AbstractResponseStream
com.caucho.server.connection.ToByteResponseStream
com.caucho.server.connection.StreamWrapperResponseStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class StreamWrapperResponseStream
- extends ToByteResponseStream
|
Method Summary |
void |
close()
Close. |
void |
finish()
Finish. |
void |
flush()
flushing |
void |
init(java.io.OutputStream os)
|
protected void |
writeNext(byte[] buf,
int offset,
int length,
boolean isEnd)
Writes the next chunk of data to the response stream. |
| Methods inherited from class com.caucho.server.connection.ToByteResponseStream |
clearBuffer, clearClose, flushBuffer, flushByteBuffer, flushCharBuffer, getBuffer, getBufferLength, getBufferOffset, getBufferSize, getCharBuffer, getCharOffset, getRemaining, isCauchoResponseStream, nextBuffer, nextCharBuffer, print, print, setBufferOffset, setBufferSize, setCharOffset, setEncoding, setHead, setLocale, setOutputStreamOnly, start, write, write |
| Methods inherited from class com.caucho.server.connection.AbstractResponseStream |
clear, clearClosed, flushByte, flushChar, getContentLength, isAutoFlush, isCommitted, isHead, sendFile, setAutoFlush, setByteCacheStream, setCharCacheStream |
| Methods inherited from class java.io.OutputStream |
write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamWrapperResponseStream
public StreamWrapperResponseStream()
init
public void init(java.io.OutputStream os)
writeNext
protected void writeNext(byte[] buf,
int offset,
int length,
boolean isEnd)
throws java.io.IOException
- Writes the next chunk of data to the response stream.
- Specified by:
writeNext in class ToByteResponseStream
- Parameters:
buf - the buffer containing the dataoffset - start offset into the bufferlength - length of the data in the buffer
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- flushing
- Specified by:
flush in interface java.io.Flushable- Overrides:
flush in class ToByteResponseStream
- Throws:
java.io.IOException
finish
public void finish()
throws java.io.IOException
- Finish.
- Overrides:
finish in class AbstractResponseStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Close.
- Specified by:
close in interface java.io.Closeable- Overrides:
close in class ToByteResponseStream
- Throws:
java.io.IOException