public class EntityServletInputStream extends ServletInputStream
ServletInputStreams,
normally there is no default implementation available for these for some stupid reason| Constructor and Description |
|---|
EntityServletInputStream(InputStream inputStream)
Creates the SIS from an existing inputstream
|
EntityServletInputStream(Reader reader)
Creates the SIS from any existing reader,
note that this is not very efficient as it has to load the full reader into memory
|
EntityServletInputStream(String str)
Creates the SIS from an existing string
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
equals(Object obj) |
int |
hashCode() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
String |
toString() |
readLinepublic EntityServletInputStream(InputStream inputStream)
inputStream - the IS to create the SIS from, can be buffered or notpublic EntityServletInputStream(String str)
str - any stringpublic EntityServletInputStream(Reader reader)
reader - any reader object, buffered or notpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2007-2014 CARET, University of Cambridge. All Rights Reserved.