Package org.glassfish.grizzly.servlet
Class ServletInputStreamImpl
- java.lang.Object
-
- java.io.InputStream
-
- jakarta.servlet.ServletInputStream
-
- org.glassfish.grizzly.servlet.ServletInputStreamImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ServletInputStreamImpl extends jakarta.servlet.ServletInputStream- Author:
- Jeanfrancois Arcand
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServletInputStreamImpl(HttpServletRequestImpl servletRequest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()Close the stream Since we re-cycle, we can't allow the call to super.close() which would permanently disable us.voidinitialize()booleanisFinished()booleanisReady()voidmark(int readlimit)booleanmarkSupported()intread()intread(byte[] b)intread(byte[] b, int off, int len)voidreset()voidsetReadListener(jakarta.servlet.ReadListener readListener)longskip(long n)-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
ServletInputStreamImpl
protected ServletInputStreamImpl(HttpServletRequestImpl servletRequest)
-
-
Method Detail
-
initialize
public void initialize() throws IOException- Throws:
IOException
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein 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
-
skip
public long skip(long n) throws IOException- Overrides:
skipin 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
-
close
public void close() throws IOExceptionClose the stream Since we re-cycle, we can't allow the call to super.close() which would permanently disable us.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- 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
-
-