Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## javax.servlet
Class ServletInputStream

    java.lang.Object
      |
      +--java.io.InputStream
            |
            +--javax.servlet.ServletInputStream

public abstract class ServletInputStream
extends java.io.InputStream

Servlets generally read POSTed data with ServletInputStream. ServletInputStream adds a readLine method to the standard InputStream API.

Constructor Summary
`ServletInputStream()`

Method Summary
`int` | `readLine(byte[] buffer, int offset, int length)` Reads a line from the POST data.

Methods inherited from class java.io.InputStream
`available, close, mark, markSupported, read, read, read, reset, skip`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ServletInputStream

    public ServletInputStream()

Method Detail

### readLine

    public int readLine(byte[] buffer,
                        int offset,
                        int length)
                 throws java.io.IOException

  Reads a line from the POST data.
  Parameters:
    `buffer` - buffer to hold the line data
    `offset` - offset into the buffer to start
    `length` - maximum number of bytes to read.
  Returns:
    number of bytes read or -1 on the end of line.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD