Class NettyInputStream
java.lang.Object
java.io.InputStream
org.glassfish.jersey.netty.connector.internal.NettyInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Input stream which servers as Request entity input.
Converts Netty NIO buffers to an input streams and stores them in the queue, waiting for Jersey to process it.
- Author:
- Pavel Bucek
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
NettyInputStream
public NettyInputStream()
-
-
Method Details
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
-
awaitNext
-
complete
-
cleanup
protected void cleanup(boolean drain) -
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
publish
public void publish(io.netty.buffer.ByteBuf content) -
clear
public void clear()
-