public static class NettyEntityWriter.DelayedEntityWriter extends Object implements NettyEntityWriter
NettyEntityWriter.DelayedEntityWriter, NettyEntityWriter.DirectEntityWriter, NettyEntityWriter.Type
Constructor and Description |
---|
DelayedEntityWriter(io.netty.channel.Channel channel,
NettyEntityWriter.Type type) |
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.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInstance
public DelayedEntityWriter(io.netty.channel.Channel channel, NettyEntityWriter.Type type)
public void write(Object object)
NettyEntityWriter
write
in interface NettyEntityWriter
object
- object to be writtenpublic void writeAndFlush(Object object)
NettyEntityWriter
writeAndFlush
in interface NettyEntityWriter
object
- object to be writtenpublic void flush() throws IOException
NettyEntityWriter
flush
in interface NettyEntityWriter
IOException
public io.netty.handler.stream.ChunkedInput getChunkedInput()
NettyEntityWriter
getChunkedInput
in interface NettyEntityWriter
public OutputStream getOutputStream()
NettyEntityWriter
OutputStream
used to write an entitygetOutputStream
in interface NettyEntityWriter
public long getLength()
NettyEntityWriter
OutputStream
getLength
in interface NettyEntityWriter
public NettyEntityWriter.Type getType()
NettyEntityWriter
getType
in interface NettyEntityWriter
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.