|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
javax.servlet.ServletInputStream
com.antiaction.mayhem.httpd.input.InputStreamContentLength
public class InputStreamContentLength
Dispatch InputStream Content-Length.
| Constructor Summary | |
|---|---|
InputStreamContentLength()
Construct object with default buffer size. |
|
InputStreamContentLength(int size)
Construct object with a buffer of the requested size. |
|
| Method Summary | |
|---|---|
int |
available()
|
void |
close()
|
void |
init()
Initialize the internal structures and indexes. |
boolean |
isEntityStreamed()
Check wether the request was read fully. |
void |
mark(int readlimit)
|
boolean |
markSupported()
|
void |
open(java.io.InputStream in)
Attach an InputStream to this wrapper. |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
int |
readLine(byte[] b,
int off,
int len)
|
void |
reset()
|
void |
setContentLength(int contentLength)
Sets the amount of content allowed to be read for the current request. |
long |
skip(long n)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputStreamContentLength()
InputStreamContentLength(int)public InputStreamContentLength(int size)
size - initial size of buffer.InputStreamContentLength()| Method Detail |
|---|
public void init()
public void setContentLength(int contentLength)
contentLength - passed in Content-Length header.public void open(java.io.InputStream in)
InputStream to this wrapper.
in - the underlying InputStream.public boolean isEntityStreamed()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStream
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStream
public void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOException
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOException
public int readLine(byte[] b,
int off,
int len)
throws java.io.IOException
readLine in class javax.servlet.ServletInputStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||