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) |
readLine
public 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.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public 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.IOException
public void finishRequest()
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public byte[] readLine() throws java.io.IOException
java.io.IOException
Copyright © 2012. All Rights Reserved.