Class NettyEntityWriter.DirectEntityWriter
java.lang.Object
org.glassfish.jersey.netty.connector.internal.NettyEntityWriter.DirectEntityWriter
- All Implemented Interfaces:
NettyEntityWriter
- Enclosing interface:
- NettyEntityWriter
public static class NettyEntityWriter.DirectEntityWriter
extends Object
implements NettyEntityWriter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.jersey.netty.connector.internal.NettyEntityWriter
NettyEntityWriter.DelayedEntityWriter, NettyEntityWriter.DirectEntityWriter, NettyEntityWriter.Type
-
Constructor Summary
ConstructorsConstructorDescriptionDirectEntityWriter
(io.netty.channel.Channel channel, NettyEntityWriter.Type type) -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
Flushes the writen objects.io.netty.handler.stream.ChunkedInput
Get the netty Chunked Input to be written.long
Get the length of the entity written to theOutputStream
Get theOutputStream
used to write an entitygetType()
Return Type ofvoid
Writes the Object to the channelvoid
writeAndFlush
(Object object) Writes the Object to the channel and flush.
-
Constructor Details
-
DirectEntityWriter
-
-
Method Details
-
write
Description copied from interface:NettyEntityWriter
Writes the Object to the channel- Specified by:
write
in interfaceNettyEntityWriter
- Parameters:
object
- object to be written
-
writeAndFlush
Description copied from interface:NettyEntityWriter
Writes the Object to the channel and flush.- Specified by:
writeAndFlush
in interfaceNettyEntityWriter
- Parameters:
object
- object to be written
-
flush
public void flush()Description copied from interface:NettyEntityWriter
Flushes the writen objects. Can throw IOException.- Specified by:
flush
in interfaceNettyEntityWriter
-
getChunkedInput
public io.netty.handler.stream.ChunkedInput getChunkedInput()Description copied from interface:NettyEntityWriter
Get the netty Chunked Input to be written.- Specified by:
getChunkedInput
in interfaceNettyEntityWriter
- Returns:
- The Chunked input instance
-
getOutputStream
Description copied from interface:NettyEntityWriter
Get theOutputStream
used to write an entity- Specified by:
getOutputStream
in interfaceNettyEntityWriter
- Returns:
- the OutputStream to write an entity
-
getLength
public long getLength()Description copied from interface:NettyEntityWriter
Get the length of the entity written to theOutputStream
- Specified by:
getLength
in interfaceNettyEntityWriter
- Returns:
-
getType
Description copied from interface:NettyEntityWriter
Return Type of- Specified by:
getType
in interfaceNettyEntityWriter
- Returns:
-