public interface FileContentEncoder extends ContentEncoder
FileChannel| 限定符和类型 | 方法和说明 |
|---|---|
long |
transfer(FileChannel src,
long position,
long count)
Transfers a portion of entity content from the given file channel
to the underlying network channel.
|
complete, isCompleted, writelong transfer(FileChannel src, long position, long count) throws IOException
src - the source FileChannel to transfer data from.position - The position within the file at which the transfer is to begin;
must be non-negativecount - The maximum number of bytes to be transferred; must be
non-negativeIOException - if some I/O error occurs.Copyright © 2023. All rights reserved.