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>
Exception
public 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>
Exception
public io.netty.buffer.ByteBuf readChunk(io.netty.buffer.ByteBufAllocator allocator) throws Exception
readChunk
in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
Exception
public 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 Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.