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
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public boolean isFinished()
isFinished
in class javax.servlet.ServletInputStream
public boolean isReady()
isReady
in class javax.servlet.ServletInputStream
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public void mark(int readlimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public int readLine(byte[] b, int off, int len) throws IOException
readLine
in class javax.servlet.ServletInputStream
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
public void setReadListener(javax.servlet.ReadListener arg0)
setReadListener
in class javax.servlet.ServletInputStream
public long skip(long n) throws IOException
skip
in class InputStream
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.