public class WinstoneInputStream extends ServletInputStream
| Constructor and Description |
|---|
WinstoneInputStream(byte[] inData) |
WinstoneInputStream(java.io.InputStream inData)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
finishRequest() |
java.io.InputStream |
getRawInputStream() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
int |
readAsMuchAsPossible(byte[] buf,
int offset,
int len)
Reads like
DataInputStream.readFully(byte[], int, int), except EOF before
fully reading it won't result in an exception. |
byte[] |
readLine()
Wrapper for the servletInputStream's readline method
|
void |
setContentLength(int length) |
readLinepublic WinstoneInputStream(java.io.InputStream inData)
public WinstoneInputStream(byte[] inData)
public java.io.InputStream getRawInputStream()
public void setContentLength(int length)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int readAsMuchAsPossible(byte[] buf,
int offset,
int len)
throws java.io.IOException
DataInputStream.readFully(byte[], int, int), except EOF before
fully reading it won't result in an exception.java.io.IOExceptionpublic void finishRequest()
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic byte[] readLine()
throws java.io.IOException
java.io.IOExceptionCopyright © 2013. All Rights Reserved.