com.ning.http.client.providers.netty
Class NettyAsyncHttpProvider.OptimizedFileRegion

java.lang.Object
  extended by com.ning.http.client.providers.netty.NettyAsyncHttpProvider.OptimizedFileRegion
All Implemented Interfaces:
org.jboss.netty.channel.FileRegion, org.jboss.netty.util.ExternalResourceReleasable
Enclosing class:
NettyAsyncHttpProvider

public static class NettyAsyncHttpProvider.OptimizedFileRegion
extends Object
implements org.jboss.netty.channel.FileRegion


Constructor Summary
NettyAsyncHttpProvider.OptimizedFileRegion(RandomAccessFile raf, long position, long count)
           
 
Method Summary
 long getCount()
           
 long getPosition()
           
 void releaseExternalResources()
           
 long transferTo(WritableByteChannel target, long position)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NettyAsyncHttpProvider.OptimizedFileRegion

public NettyAsyncHttpProvider.OptimizedFileRegion(RandomAccessFile raf,
                                                  long position,
                                                  long count)
Method Detail

getPosition

public long getPosition()
Specified by:
getPosition in interface org.jboss.netty.channel.FileRegion

getCount

public long getCount()
Specified by:
getCount in interface org.jboss.netty.channel.FileRegion

transferTo

public long transferTo(WritableByteChannel target,
                       long position)
                throws IOException
Specified by:
transferTo in interface org.jboss.netty.channel.FileRegion
Throws:
IOException

releaseExternalResources

public void releaseExternalResources()
Specified by:
releaseExternalResources in interface org.jboss.netty.util.ExternalResourceReleasable


Copyright © 2011. All Rights Reserved.