public class BodyFileRegion extends AbstractReferenceCounted implements 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() |
long |
transfered() |
long |
transferTo(WritableByteChannel target,
long position) |
refCnt, release, release, retain, retain, setRefCnt
public BodyFileRegion(RandomAccessBody body)
public long position()
position
in interface FileRegion
public long count()
count
in interface FileRegion
public long transfered()
transfered
in interface FileRegion
public long transferTo(WritableByteChannel target, long position) throws IOException
transferTo
in interface FileRegion
IOException
protected void deallocate()
deallocate
in class AbstractReferenceCounted
Copyright © 2017. All Rights Reserved.