org.redkale.net.http

## 类 HttpResponse.TransferFileHandler

- java.lang.Object
- - org.redkale.net.http.HttpResponse.TransferFileHandler

- 所有已实现的接口:
    java.nio.channels.CompletionHandler<java.lang.Integer,java.nio.ByteBuffer>
  封闭类:
    HttpResponse

      protected final class HttpResponse.TransferFileHandler
      extends java.lang.Object
      implements java.nio.channels.CompletionHandler<java.lang.Integer,java.nio.ByteBuffer>

- - ### 构造器概要

    构造器
    构造器和说明
    `TransferFileHandler(java.nio.channels.AsynchronousFileChannel channel)`
    `TransferFileHandler(java.nio.channels.AsynchronousFileChannel channel, long offset, long len)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `completed(java.lang.Integer result, java.nio.ByteBuffer attachment)`
    `void` | `failed(java.lang.Throwable exc, java.nio.ByteBuffer attachment)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### TransferFileHandler

          public TransferFileHandler(java.nio.channels.AsynchronousFileChannel channel)

    - #### TransferFileHandler

          public TransferFileHandler(java.nio.channels.AsynchronousFileChannel channel,
                                     long offset,
                                     long len)

  - ### 方法详细资料

    - #### completed

          public void completed(java.lang.Integer result,
                                java.nio.ByteBuffer attachment)

      指定者:
        `completed` 在接口中 `java.nio.channels.CompletionHandler<java.lang.Integer,java.nio.ByteBuffer>`

    - #### failed

          public void failed(java.lang.Throwable exc,
                             java.nio.ByteBuffer attachment)

      指定者:
        `failed` 在接口中 `java.nio.channels.CompletionHandler<java.lang.Integer,java.nio.ByteBuffer>`