org.atmosphere.nettosphere
Class ChunkedWriter

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.ChunkedWriter
All Implemented Interfaces:
org.atmosphere.cpr.AsyncIOWriter

public class ChunkedWriter
extends ChannelWriter

An chunk based ChannelWriter


Field Summary
 
Fields inherited from class org.atmosphere.nettosphere.ChannelWriter
channel, CHUNK_DELIMITER, doneProcessing, ENDCHUNK, keepAlive, lastWrite, transformCacheBuffer, writeHeader
 
Fields inherited from class org.atmosphere.cpr.AtmosphereInterceptorWriter
filters, reversedFilters
 
Constructor Summary
ChunkedWriter(org.jboss.netty.channel.Channel channel, boolean writeHeader, boolean keepAlive, ChannelBufferPool channelBufferPool)
           
 
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

ChunkedWriter

public ChunkedWriter(org.jboss.netty.channel.Channel channel,
                     boolean writeHeader,
                     boolean keepAlive,
                     ChannelBufferPool channelBufferPool)
Method Detail

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

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


Copyright © 2014. All Rights Reserved.