public interface NettyEntityWriter
Modifier and Type | Interface and Description |
---|---|
static class |
NettyEntityWriter.DelayedEntityWriter |
static class |
NettyEntityWriter.DirectEntityWriter |
static class |
NettyEntityWriter.Type
Type of the entity writer.
|
Modifier and Type | Method and Description |
---|---|
void |
flush()
Flushes the writen objects.
|
io.netty.handler.stream.ChunkedInput |
getChunkedInput()
Get the netty Chunked Input to be written.
|
static NettyEntityWriter |
getInstance(ClientRequest clientRequest,
io.netty.channel.Channel channel) |
long |
getLength()
Get the length of the entity written to the
OutputStream |
OutputStream |
getOutputStream()
Get the
OutputStream used to write an entity |
NettyEntityWriter.Type |
getType()
Return Type of
|
void |
write(Object object)
Writes the Object to the channel
|
void |
writeAndFlush(Object object)
Writes the Object to the channel and flush.
|
void write(Object object)
object
- object to be writtenvoid writeAndFlush(Object object)
object
- object to be writtenvoid flush() throws IOException
IOException
io.netty.handler.stream.ChunkedInput getChunkedInput()
OutputStream getOutputStream()
OutputStream
used to write an entitylong getLength()
OutputStream
NettyEntityWriter.Type getType()
static NettyEntityWriter getInstance(ClientRequest clientRequest, io.netty.channel.Channel channel)
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.