public class ServletInputStreamWrapper
extends javax.servlet.ServletInputStream
ServletInputStream class that can be subclassed by developers wishing
to adapt the behavior of a Stream. One such example may be to override close() to instead be a no-op as in
SOLR-8933.
This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped stream.| Constructor and Description |
|---|
ServletInputStreamWrapper(javax.servlet.ServletInputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isFinished() |
boolean |
isReady() |
void |
mark(int readlimit) |
boolean |
markSupported() |
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 |
setReadListener(javax.servlet.ReadListener arg0) |
long |
skip(long n) |
String |
toString() |
public ServletInputStreamWrapper(javax.servlet.ServletInputStream stream)
throws IOException
IOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic boolean isFinished()
isFinished in class javax.servlet.ServletInputStreampublic boolean isReady()
isReady in class javax.servlet.ServletInputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int readLine(byte[] b,
int off,
int len)
throws IOException
readLine in class javax.servlet.ServletInputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic void setReadListener(javax.servlet.ReadListener arg0)
setReadListener in class javax.servlet.ServletInputStreampublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.