Class ServletInputStreamWrapper
- java.lang.Object
-
- java.io.InputStream
-
- jakarta.servlet.ServletInputStream
-
- org.apache.felix.http.base.internal.jakartawrappers.ServletInputStreamWrapper
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ServletInputStreamWrapper extends jakarta.servlet.ServletInputStream
Servlet input stream wrapper
-
-
Constructor Summary
Constructors Constructor Description ServletInputStreamWrapper(javax.servlet.ServletInputStream stream)
Create input stream
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
boolean
isFinished()
boolean
isReady()
void
mark(int readlimit)
boolean
markSupported()
int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
byte[]
readAllBytes()
int
readLine(byte[] b, int off, int len)
int
readNBytes(byte[] b, int off, int len)
byte[]
readNBytes(int len)
void
reset()
void
setReadListener(jakarta.servlet.ReadListener readListener)
long
skip(long n)
long
transferTo(OutputStream out)
-
Methods inherited from class java.io.InputStream
nullInputStream
-
-
-
-
Method Detail
-
readLine
public int readLine(byte[] b, int off, int len) throws IOException
- Overrides:
readLine
in classjakarta.servlet.ServletInputStream
- Throws:
IOException
-
isFinished
public boolean isFinished()
- Specified by:
isFinished
in classjakarta.servlet.ServletInputStream
-
isReady
public boolean isReady()
- Specified by:
isReady
in classjakarta.servlet.ServletInputStream
-
setReadListener
public void setReadListener(jakarta.servlet.ReadListener readListener)
- Specified by:
setReadListener
in classjakarta.servlet.ServletInputStream
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
readAllBytes
public byte[] readAllBytes() throws IOException
- Overrides:
readAllBytes
in classInputStream
- Throws:
IOException
-
readNBytes
public byte[] readNBytes(int len) throws IOException
- Overrides:
readNBytes
in classInputStream
- Throws:
IOException
-
readNBytes
public int readNBytes(byte[] b, int off, int len) throws IOException
- Overrides:
readNBytes
in classInputStream
- Throws:
IOException
-
skip
public long skip(long n) throws IOException
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
public int available() throws IOException
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit)
- Overrides:
mark
in classInputStream
-
reset
public void reset() throws IOException
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classInputStream
-
transferTo
public long transferTo(OutputStream out) throws IOException
- Overrides:
transferTo
in classInputStream
- Throws:
IOException
-
-