com.ning.http.client.providers.netty
Class NettyAsyncHttpProvider.OptimizedFileRegion
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NettyAsyncHttpProvider.OptimizedFileRegion
public NettyAsyncHttpProvider.OptimizedFileRegion(RandomAccessFile raf,
long position,
long count)
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.