com.ning.http.client.providers.netty
public static class NettyAsyncHttpProvider.OptimizedFileRegion extends java.lang.Object implements org.jboss.netty.channel.FileRegion
Constructor and Description |
---|
NettyAsyncHttpProvider.OptimizedFileRegion(java.io.RandomAccessFile raf,
long position,
long count) |
Modifier and Type | Method and Description |
---|---|
long |
getCount() |
long |
getPosition() |
void |
releaseExternalResources() |
long |
transferTo(java.nio.channels.WritableByteChannel target,
long position) |
public NettyAsyncHttpProvider.OptimizedFileRegion(java.io.RandomAccessFile raf, long position, long count)
public long getPosition()
getPosition
in interface org.jboss.netty.channel.FileRegion
public long getCount()
getCount
in interface org.jboss.netty.channel.FileRegion
public long transferTo(java.nio.channels.WritableByteChannel target, long position) throws java.io.IOException
transferTo
in interface org.jboss.netty.channel.FileRegion
java.io.IOException
public void releaseExternalResources()
releaseExternalResources
in interface org.jboss.netty.util.ExternalResourceReleasable
Copyright © 2014. All Rights Reserved.