org.atmosphere.nettosphere
Class StreamWriter

java.lang.Object
  extended by org.atmosphere.cpr.AsyncIOWriterAdapter
      extended by org.atmosphere.cpr.AtmosphereInterceptorWriter
          extended by org.atmosphere.nettosphere.ChannelWriter
              extended by org.atmosphere.nettosphere.StreamWriter
All Implemented Interfaces:
org.atmosphere.cpr.AsyncIOWriter

public class StreamWriter
extends ChannelWriter

A streaming ChannelWriter that write unchuncked bytes.


Field Summary
 
Fields inherited from class org.atmosphere.nettosphere.ChannelWriter
channel, CHUNK_DELIMITER, doneProcessing, END, ENDCHUNK, keepAlive, lastWrite, transformCacheBuffer, writeHeader
 
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.nettosphere.ChannelWriter
constructStatusAndHeaders, isClosed, lastTick, transform, write, write, write, writeError
 
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
 

Constructor Detail

StreamWriter

public StreamWriter(org.jboss.netty.channel.Channel channel,
                    boolean writeHeader,
                    boolean keepAlive)
Method Detail

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.