NioEndpoint.SendfileData (Apache Tomcat 9.0.120 API Documentation)
Description: declaration: package: org.apache.tomcat.util.net, class: NioEndpoint, class: SendfileData

# Class NioEndpoint.SendfileData

java.lang.Object
org.apache.tomcat.util.net.SendfileDataBase
org.apache.tomcat.util.net.NioEndpoint.SendfileData

Enclosing class:
  `NioEndpoint`

public static class NioEndpoint.SendfileData extends SendfileDataBase
SendfileData class.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected FileChannel`
  `fchannel`
  The file channel for the sendfile operation.

  ### Fields inherited from class SendfileDataBase

  `fileName, keepAliveState, length, pos`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SendfileData(String filename, long pos, long length)`
  Creates a new sendfile data object.

- ## Method Summary

  ### Methods inherited from class Object

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

- ## Field Details

  - ### fchannel

    protected volatile FileChannel fchannel
    The file channel for the sendfile operation.

- ## Constructor Details

  - ### SendfileData

    public SendfileData(String filename, long pos, long length)
    Creates a new sendfile data object.
    Parameters:
      `filename` - The file to send
      `pos` - The starting position
      `length` - The number of bytes to send