public class NettyByteArrayBody extends NettyDirectBody
Constructor and Description |
---|
NettyByteArrayBody(byte[] bytes) |
NettyByteArrayBody(byte[] bytes,
String contentType) |
Modifier and Type | Method and Description |
---|---|
org.jboss.netty.buffer.ChannelBuffer |
channelBuffer() |
long |
getContentLength() |
String |
getContentType() |
write
public NettyByteArrayBody(byte[] bytes)
public NettyByteArrayBody(byte[] bytes, String contentType)
public long getContentLength()
public String getContentType()
public org.jboss.netty.buffer.ChannelBuffer channelBuffer()
channelBuffer
in class NettyDirectBody
Copyright © 2014. All Rights Reserved.