Package io.undertow.servlet.spec
Class UpgradeServletInputStream
- java.lang.Object
-
- java.io.InputStream
-
- jakarta.servlet.ServletInputStream
-
- io.undertow.servlet.spec.UpgradeServletInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class UpgradeServletInputStream extends jakarta.servlet.ServletInputStreamServlet input stream implementation. This stream is non-buffered, and is only used for upgraded requests- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description UpgradeServletInputStream(org.xnio.channels.StreamSourceChannel channel, io.undertow.connector.ByteBufferPool bufferPool, java.util.concurrent.Executor ioExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()booleanisFinished()booleanisReady()intread()intread(byte[] b)intread(byte[] b, int off, int len)voidsetReadListener(jakarta.servlet.ReadListener readListener)
-
-
-
Method Detail
-
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 java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Overrides:
availablein classjava.io.InputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException
-
-