Class DelegatingServletInputStream
- java.lang.Object
-
- java.io.InputStream
-
- javax.servlet.ServletInputStream
-
- com.atlassian.bamboo.plugins.rest.common.DelegatingServletInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class DelegatingServletInputStream extends javax.servlet.ServletInputStream
-
-
Constructor Summary
Constructors Constructor Description DelegatingServletInputStream(@NotNull InputStream sourceStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
isFinished()
boolean
isReady()
int
read()
void
setReadListener(javax.servlet.ReadListener readListener)
-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
DelegatingServletInputStream
public DelegatingServletInputStream(@NotNull @NotNull InputStream sourceStream)
-
-
Method Detail
-
read
public int read() throws IOException
- Specified by:
read
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
-
isFinished
public boolean isFinished()
- Specified by:
isFinished
in classjavax.servlet.ServletInputStream
-
isReady
public boolean isReady()
- Specified by:
isReady
in classjavax.servlet.ServletInputStream
-
setReadListener
public void setReadListener(javax.servlet.ReadListener readListener)
- Specified by:
setReadListener
in classjavax.servlet.ServletInputStream
-
-