public static class NettyAsyncHttpProvider.OptimizedFileRegion extends Object implements org.jboss.netty.channel.FileRegion
| Constructor and Description |
|---|
NettyAsyncHttpProvider.OptimizedFileRegion(RandomAccessFile raf,
long position,
long count) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount() |
long |
getPosition() |
void |
releaseExternalResources() |
long |
transferTo(WritableByteChannel target,
long position) |
public NettyAsyncHttpProvider.OptimizedFileRegion(RandomAccessFile raf, long position, long count)
public long getPosition()
getPosition in interface org.jboss.netty.channel.FileRegionpublic long getCount()
getCount in interface org.jboss.netty.channel.FileRegionpublic long transferTo(WritableByteChannel target, long position) throws IOException
transferTo in interface org.jboss.netty.channel.FileRegionIOExceptionpublic void releaseExternalResources()
releaseExternalResources in interface org.jboss.netty.util.ExternalResourceReleasableCopyright © 2015. All rights reserved.