public class OptimizedFileRegion extends Object implements org.jboss.netty.channel.FileRegion
| Constructor and Description |
|---|
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 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 © 2014. All Rights Reserved.