Class NettyServletInputStream
- java.lang.Object
-
- java.io.InputStream
-
- javax.servlet.ServletInputStream
-
- org.apache.cxf.transport.http.netty.server.servlet.NettyServletInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class NettyServletInputStream extends javax.servlet.ServletInputStream
-
-
Constructor Summary
Constructors Constructor Description NettyServletInputStream(io.netty.handler.codec.http.HttpContent httpContent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisFinished()booleanisReady()intread()intread(byte[] buf)intread(byte[] buf, int offset, int len)voidsetReadListener(javax.servlet.ReadListener readListener)-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] buf) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] buf, int offset, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
isFinished
public boolean isFinished()
- Specified by:
isFinishedin classjavax.servlet.ServletInputStream
-
isReady
public boolean isReady()
- Specified by:
isReadyin classjavax.servlet.ServletInputStream
-
setReadListener
public void setReadListener(javax.servlet.ReadListener readListener)
- Specified by:
setReadListenerin classjavax.servlet.ServletInputStream
-
-