public class BodyFileRegion
extends io.netty.util.AbstractReferenceCounted
implements io.netty.channel.FileRegion
RandomAccessBody to Netty's FileRegion.| Constructor and Description |
|---|
BodyFileRegion(RandomAccessBody body) |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
protected void |
deallocate() |
long |
position() |
io.netty.channel.FileRegion |
retain() |
io.netty.channel.FileRegion |
retain(int arg0) |
io.netty.channel.FileRegion |
touch() |
io.netty.channel.FileRegion |
touch(Object arg0) |
long |
transfered() |
long |
transferred() |
long |
transferTo(WritableByteChannel target,
long position) |
refCnt, release, release, setRefCntpublic BodyFileRegion(RandomAccessBody body)
public long position()
position in interface io.netty.channel.FileRegionpublic long count()
count in interface io.netty.channel.FileRegionpublic long transfered()
transfered in interface io.netty.channel.FileRegionpublic long transferred()
transferred in interface io.netty.channel.FileRegionpublic io.netty.channel.FileRegion retain()
retain in interface io.netty.channel.FileRegionretain in interface io.netty.util.ReferenceCountedretain in class io.netty.util.AbstractReferenceCountedpublic io.netty.channel.FileRegion retain(int arg0)
retain in interface io.netty.channel.FileRegionretain in interface io.netty.util.ReferenceCountedretain in class io.netty.util.AbstractReferenceCountedpublic io.netty.channel.FileRegion touch()
touch in interface io.netty.channel.FileRegiontouch in interface io.netty.util.ReferenceCountedtouch in class io.netty.util.AbstractReferenceCountedpublic io.netty.channel.FileRegion touch(Object arg0)
touch in interface io.netty.channel.FileRegiontouch in interface io.netty.util.ReferenceCountedpublic long transferTo(WritableByteChannel target, long position) throws IOException
transferTo in interface io.netty.channel.FileRegionIOExceptionprotected void deallocate()
deallocate in class io.netty.util.AbstractReferenceCountedCopyright © 2017. All Rights Reserved.