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, waitgetInstancepublic DelayedEntityWriter(io.netty.channel.Channel channel,
NettyEntityWriter.Type type)
public void write(Object object)
NettyEntityWriterwrite in interface NettyEntityWriterobject - object to be writtenpublic void writeAndFlush(Object object)
NettyEntityWriterwriteAndFlush in interface NettyEntityWriterobject - object to be writtenpublic void flush()
throws IOException
NettyEntityWriterflush in interface NettyEntityWriterIOExceptionpublic io.netty.handler.stream.ChunkedInput getChunkedInput()
NettyEntityWritergetChunkedInput in interface NettyEntityWriterpublic OutputStream getOutputStream()
NettyEntityWriterOutputStream used to write an entitygetOutputStream in interface NettyEntityWriterpublic long getLength()
NettyEntityWriterOutputStreamgetLength in interface NettyEntityWriterpublic NettyEntityWriter.Type getType()
NettyEntityWritergetType in interface NettyEntityWriterCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.