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, setRefCntpublic BodyFileRegion(RandomAccessBody body)
public long position()
position in interface FileRegionpublic long count()
count in interface FileRegionpublic long transfered()
transfered in interface FileRegionpublic long transferTo(WritableByteChannel target, long position) throws IOException
transferTo in interface FileRegionIOExceptionprotected void deallocate()
deallocate in class AbstractReferenceCountedCopyright © 2017. All Rights Reserved.