Class JerseyChunkedInput
java.lang.Object
java.io.OutputStream
org.glassfish.jersey.netty.connector.internal.JerseyChunkedInput
- All Implemented Interfaces:
io.netty.channel.ChannelFutureListener,io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>,io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>,Closeable,Flushable,AutoCloseable,EventListener
public class JerseyChunkedInput
extends OutputStream
implements io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>, io.netty.channel.ChannelFutureListener
Netty
ChunkedInput implementation which also serves as an output
stream to Jersey ContainerResponseContext.- Author:
- Pavel Bucek
-
Field Summary
Fields inherited from interface io.netty.channel.ChannelFutureListener
CLOSE, CLOSE_ON_FAILURE, FIRE_EXCEPTION_ON_FAILURE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()booleanlonglength()voidoperationComplete(io.netty.channel.ChannelFuture f) longprogress()io.netty.buffer.ByteBufreadChunk(io.netty.buffer.ByteBufAllocator allocator) io.netty.buffer.ByteBufreadChunk(io.netty.channel.ChannelHandlerContext ctx) Deprecated.voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
JerseyChunkedInput
public JerseyChunkedInput(io.netty.channel.Channel ctx)
-
-
Method Details
-
isEndOfInput
- Specified by:
isEndOfInputin interfaceio.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>- Throws:
Exception
-
operationComplete
- Specified by:
operationCompletein interfaceio.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>- Throws:
Exception
-
readChunk
@Deprecated public io.netty.buffer.ByteBuf readChunk(io.netty.channel.ChannelHandlerContext ctx) throws Exception Deprecated.- Specified by:
readChunkin interfaceio.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>- Throws:
Exception
-
readChunk
public io.netty.buffer.ByteBuf readChunk(io.netty.buffer.ByteBufAllocator allocator) throws Exception - Specified by:
readChunkin interfaceio.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>- Throws:
Exception
-
length
public long length()- Specified by:
lengthin interfaceio.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
-
progress
public long progress()- Specified by:
progressin interfaceio.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceio.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-