All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class calypso.core.httpserver.HttpServletInputStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----javax.servlet.ServletInputStream
                   |
                   +----calypso.core.httpserver.HttpServletInputStream

public class HttpServletInputStream
extends ServletInputStream
HttpServletInputStream is an implementation of ServletInputStream to be used with HTTP servlets.

Version:
v1.0
Author:
Juha Pääjärvi / TCM laboratory / Helsinki Univ. of Tech.

Constructor Index

 o HttpServletInputStream()
Constructs an HttpServletInputStream.

Method Index

 o available()
 o close()
Closes this input stream.
 o init(InputStream)
Initializes this HttpServletInputStream to read from the input stream specified as an argument.
 o mark(int)
 o markSupported()
 o read()
Reads one byte from the input stream and returns it as an integer.
 o read(byte[])
 o read(byte[], int, int)
 o reset()
 o skip(long)

Constructors

 o HttpServletInputStream
 public HttpServletInputStream()
Constructs an HttpServletInputStream.

Methods

 o init
 public void init(InputStream input_)
Initializes this HttpServletInputStream to read from the input stream specified as an argument.

Parameters:
input_ - the new source for this HttpServletInputStream.
 o read
 public int read() throws IOException
Reads one byte from the input stream and returns it as an integer.

Returns:
the byte read from the input stream.
Throws: IOException
If an I/O error occurs.
Overrides:
read in class InputStream
 o read
 public int read(byte b[]) throws IOException
Overrides:
read in class InputStream
 o read
 public int read(byte b[],
                 int off,
                 int len) throws IOException
Overrides:
read in class InputStream
 o skip
 public long skip(long n) throws IOException
Overrides:
skip in class InputStream
 o available
 public int available() throws IOException
Overrides:
available in class InputStream
 o close
 public void close() throws IOException
Closes this input stream. This method does nothing, because it is not any business of servlets to close their input stream. In HTTP/1.1 persistent connections (keep-alive) it is default behaviour and servlets should not close their input and output streams, because there might be new requests coming that use the same connection.

Overrides:
close in class InputStream
 o mark
 public synchronized void mark(int readlimit)
Overrides:
mark in class InputStream
 o reset
 public synchronized void reset() throws IOException
Overrides:
reset in class InputStream
 o markSupported
 public boolean markSupported()
Overrides:
markSupported in class InputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index