Constructor and Description |
---|
NettyInputStreamBody(java.io.InputStream inputStream) |
NettyInputStreamBody(java.io.InputStream inputStream,
long contentLength) |
Modifier and Type | Method and Description |
---|---|
long |
getContentLength() |
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream() |
void |
write(Channel channel,
NettyResponseFuture<?> future) |
public NettyInputStreamBody(java.io.InputStream inputStream)
public NettyInputStreamBody(java.io.InputStream inputStream, long contentLength)
public java.io.InputStream getInputStream()
public long getContentLength()
getContentLength
in interface NettyBody
public java.lang.String getContentType()
getContentType
in interface NettyBody
public void write(Channel channel, NettyResponseFuture<?> future) throws java.io.IOException
Copyright © 2018. All Rights Reserved.