public class JerseyChunkedInput extends OutputStream implements io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>, io.netty.channel.ChannelFutureListener
ChunkedInput implementation which also serves as an output
stream to Jersey ContainerResponseContext.| Constructor and Description |
|---|
JerseyChunkedInput(io.netty.channel.Channel ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
boolean |
isEndOfInput() |
long |
length() |
void |
operationComplete(io.netty.channel.ChannelFuture f) |
long |
progress() |
io.netty.buffer.ByteBuf |
readChunk(io.netty.buffer.ByteBufAllocator allocator) |
io.netty.buffer.ByteBuf |
readChunk(io.netty.channel.ChannelHandlerContext ctx)
Deprecated.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public boolean isEndOfInput()
throws Exception
isEndOfInput in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>Exceptionpublic void operationComplete(io.netty.channel.ChannelFuture f)
throws Exception
operationComplete in interface io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>Exception@Deprecated public io.netty.buffer.ByteBuf readChunk(io.netty.channel.ChannelHandlerContext ctx) throws Exception
readChunk in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>Exceptionpublic io.netty.buffer.ByteBuf readChunk(io.netty.buffer.ByteBufAllocator allocator)
throws Exception
readChunk in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>Exceptionpublic long length()
length in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>public long progress()
progress in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>public void close()
throws IOException
close in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.