org.atmosphere.nettosphere
Class StreamWriter
java.lang.Object
org.atmosphere.cpr.AsyncIOWriterAdapter
org.atmosphere.cpr.AtmosphereInterceptorWriter
org.atmosphere.nettosphere.ChannelWriter
org.atmosphere.nettosphere.StreamWriter
- All Implemented Interfaces:
- org.atmosphere.cpr.AsyncIOWriter
public class StreamWriter
- extends ChannelWriter
A streaming ChannelWriter that write unchuncked bytes.
| Fields inherited from class org.atmosphere.cpr.AtmosphereInterceptorWriter |
filters, reversedFilters |
|
Constructor Summary |
StreamWriter(org.jboss.netty.channel.Channel channel,
boolean writeHeader,
boolean keepAlive)
|
|
Method Summary |
org.atmosphere.cpr.AsyncIOWriter |
asyncWrite(org.atmosphere.cpr.AtmosphereResponse response,
byte[] data,
int offset,
int length)
|
void |
close(org.atmosphere.cpr.AtmosphereResponse response)
|
| Methods inherited from class org.atmosphere.cpr.AtmosphereInterceptorWriter |
filters, flush, interceptor, invokeInterceptor, redirect, writeReady |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamWriter
public StreamWriter(org.jboss.netty.channel.Channel channel,
boolean writeHeader,
boolean keepAlive)
asyncWrite
public org.atmosphere.cpr.AsyncIOWriter asyncWrite(org.atmosphere.cpr.AtmosphereResponse response,
byte[] data,
int offset,
int length)
throws IOException
- Specified by:
asyncWrite in class ChannelWriter
- Throws:
IOException
close
public void close(org.atmosphere.cpr.AtmosphereResponse response)
throws IOException
- Specified by:
close in interface org.atmosphere.cpr.AsyncIOWriter- Overrides:
close in class org.atmosphere.cpr.AtmosphereInterceptorWriter
- Throws:
IOException
Copyright © 2014. All Rights Reserved.