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.ServletInputStreamServlet 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 intavailable()voidclose()booleanisFinished()booleanisReady()voidmark(int readlimit)booleanmarkSupported()intread()intread(byte[] b)intread(byte[] b, int off, int len)byte[]readAllBytes()intreadLine(byte[] b, int off, int len)intreadNBytes(byte[] b, int off, int len)byte[]readNBytes(int len)voidreset()voidsetReadListener(jakarta.servlet.ReadListener readListener)longskip(long n)longtransferTo(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:
readLinein classjakarta.servlet.ServletInputStream- Throws:
IOException
-
isFinished
public boolean isFinished()
- Specified by:
isFinishedin classjakarta.servlet.ServletInputStream
-
isReady
public boolean isReady()
- Specified by:
isReadyin classjakarta.servlet.ServletInputStream
-
setReadListener
public void setReadListener(jakarta.servlet.ReadListener readListener)
- Specified by:
setReadListenerin classjakarta.servlet.ServletInputStream
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
readAllBytes
public byte[] readAllBytes() throws IOException- Overrides:
readAllBytesin classInputStream- Throws:
IOException
-
readNBytes
public byte[] readNBytes(int len) throws IOException- Overrides:
readNBytesin classInputStream- Throws:
IOException
-
readNBytes
public int readNBytes(byte[] b, int off, int len) throws IOException- Overrides:
readNBytesin classInputStream- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit)
- Overrides:
markin classInputStream
-
reset
public void reset() throws IOException- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classInputStream
-
transferTo
public long transferTo(OutputStream out) throws IOException
- Overrides:
transferToin classInputStream- Throws:
IOException
-
-