public class ReadableChannelFileRegion
extends io.netty.util.AbstractReferenceCounted
implements io.netty.channel.FileRegion
Constructor and Description |
---|
ReadableChannelFileRegion(java.nio.channels.ReadableByteChannel source,
long blockSize) |
Modifier and Type | Method and Description |
---|---|
long |
count() |
void |
deallocate() |
long |
position() |
long |
transfered() |
long |
transferTo(java.nio.channels.WritableByteChannel target,
long pos) |
refCnt, release, release, retain, retain
public ReadableChannelFileRegion(java.nio.channels.ReadableByteChannel source, long blockSize)
public long count()
count
in interface io.netty.channel.FileRegion
public long position()
position
in interface io.netty.channel.FileRegion
public long transfered()
transfered
in interface io.netty.channel.FileRegion
public long transferTo(java.nio.channels.WritableByteChannel target, long pos)
transferTo
in interface io.netty.channel.FileRegion
public void deallocate()
deallocate
in class io.netty.util.AbstractReferenceCounted