| org.apache.http.nio.FileContentEncoder
All known Subclasses: org.apache.http.impl.nio.codecs.LengthDelimitedEncoder, org.apache.http.impl.nio.codecs.IdentityEncoder,
FileContentEncoder | public interface FileContentEncoder extends ContentEncoder(Code) | | A content encoder capable of transferring data directly from a
FileChannel |
Method Summary | |
long | transfer(FileChannel src, long position, long count) Transfers a portion of entity content from the given file channel
to the underlying network channel.
Parameters: src - the source FileChannel to transfer data from. Parameters: position - The position within the file at which the transfer is to begin;must be non-negative Parameters: count - The maximum number of bytes to be transferred; must benon-negative throws: IOException - , if some I/O error occurs. |
transfer | long transfer(FileChannel src, long position, long count) throws IOException(Code) | | Transfers a portion of entity content from the given file channel
to the underlying network channel.
Parameters: src - the source FileChannel to transfer data from. Parameters: position - The position within the file at which the transfer is to begin;must be non-negative Parameters: count - The maximum number of bytes to be transferred; must benon-negative throws: IOException - , if some I/O error occurs. The number of bytes, possibly zero,that were actually transferred |
|
|