public class BodyFileRegion extends Object implements org.jboss.netty.channel.FileRegion
RandomAccessBody
to Netty's FileRegion
.Constructor and Description |
---|
BodyFileRegion(RandomAccessBody body) |
Modifier and Type | Method and Description |
---|---|
long |
getCount() |
long |
getPosition() |
void |
releaseExternalResources() |
long |
transferTo(WritableByteChannel target,
long position) |
public BodyFileRegion(RandomAccessBody body)
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 © 2015. All Rights Reserved.