CGIServlet.HTTPHeaderInputStream (Apache Tomcat 9.0.111 API Documentation)
Description: declaration: package: org.apache.catalina.servlets, class: CGIServlet, class: HTTPHeaderInputStream

# Class CGIServlet.HTTPHeaderInputStream

java.lang.Object
java.io.InputStream
org.apache.catalina.servlets.CGIServlet.HTTPHeaderInputStream

All Implemented Interfaces:
  `Closeable, AutoCloseable`

Enclosing class:
  `CGIServlet`

protected static class CGIServlet.HTTPHeaderInputStream extends InputStream
This is an input stream specifically for reading HTTP headers. It reads up to and including the two blank lines terminating the headers. It allows the content to be read using bytes or characters as appropriate.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `read()`

  ### Methods inherited from class InputStream

  `available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo`

  ### Methods inherited from class Object

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

- ## Method Details

  - ### read

    public int read() throws IOException
    Specified by:
      `read` in class `InputStream`
    Throws:
      `IOException`
    See Also:
      - `InputStream.read()`