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.FileRegion
public long getCount()
getCount
in interface org.jboss.netty.channel.FileRegion
public long transferTo(WritableByteChannel target, long position) throws IOException
transferTo
in interface org.jboss.netty.channel.FileRegion
IOException
public void releaseExternalResources()
releaseExternalResources
in interface org.jboss.netty.util.ExternalResourceReleasable
Copyright © 2014. All Rights Reserved.