Package io.undertow.servlet.spec
Class ServletInputStreamImpl
- java.lang.Object
-
- java.io.InputStream
-
- jakarta.servlet.ServletInputStream
-
- io.undertow.servlet.spec.ServletInputStreamImpl
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class ServletInputStreamImpl extends jakarta.servlet.ServletInputStream
Servlet input stream implementation. This stream is non-buffered, and is used for both HTTP requests and for upgraded streams.- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description ServletInputStreamImpl(HttpServletRequestImpl request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
boolean
isFinished()
boolean
isReady()
int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
void
setReadListener(jakarta.servlet.ReadListener readListener)
-
-
-
Constructor Detail
-
ServletInputStreamImpl
public ServletInputStreamImpl(HttpServletRequestImpl request)
-
-
Method Detail
-
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 java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException
- Overrides:
available
in classjava.io.InputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-