| org.apache.http.nio.FileContentDecoder
All known Subclasses: org.apache.http.impl.nio.codecs.LengthDelimitedDecoder, org.apache.http.impl.nio.codecs.IdentityDecoder,
FileContentDecoder | public interface FileContentDecoder extends ContentDecoder(Code) | | A content decoder capable of transferring data directly to a
FileChannel |
Method Summary | |
long | transfer(FileChannel dst, long position, long count) Transfers a portion of entity content from the underlying network channel
into the given file channel.
Parameters: dst - the target FileChannel to transfer data into. 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 dst, long position, long count) throws IOException(Code) | | Transfers a portion of entity content from the underlying network channel
into the given file channel.
Parameters: dst - the target FileChannel to transfer data into. 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 |
|
|