Package com.logicaldoc.util.servlet
Class BytesServletInputStream
java.lang.Object
java.io.InputStream
javax.servlet.ServletInputStream
com.logicaldoc.util.servlet.BytesServletInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class BytesServletInputStream
extends javax.servlet.ServletInputStream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isReady()
int
read()
void
setReadListener
(javax.servlet.ReadListener readListener) Methods inherited from class javax.servlet.ServletInputStream
readLine
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
BytesServletInputStream
public BytesServletInputStream(byte[] bytes)
-
-
Method Details
-
read
- Specified by:
read
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
-