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.
-
HttpServletInputStream()
- Constructs an HttpServletInputStream.
-
available()
-
-
close()
- Closes this input stream.
-
init(InputStream)
- Initializes this HttpServletInputStream to read from the input
stream specified as an argument.
-
mark(int)
-
-
markSupported()
-
-
read()
- Reads one byte from the input stream and returns it as an integer.
-
read(byte[])
-
-
read(byte[], int, int)
-
-
reset()
-
-
skip(long)
-
HttpServletInputStream
public HttpServletInputStream()
- Constructs an HttpServletInputStream.
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.
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
read
public int read(byte b[]) throws IOException
- Overrides:
- read in class InputStream
read
public int read(byte b[],
int off,
int len) throws IOException
- Overrides:
- read in class InputStream
skip
public long skip(long n) throws IOException
- Overrides:
- skip in class InputStream
available
public int available() throws IOException
- Overrides:
- available in class InputStream
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
mark
public synchronized void mark(int readlimit)
- Overrides:
- mark in class InputStream
reset
public synchronized void reset() throws IOException
- Overrides:
- reset in class InputStream
markSupported
public boolean markSupported()
- Overrides:
- markSupported in class InputStream
All Packages Class Hierarchy This Package Previous Next Index