public class BinaryAttachmentResponseWriter extends AbstractResponseWriter<BinaryAttachmentResponse>
Modifier and Type | Class and Description |
---|---|
class |
BinaryAttachmentResponseWriter.HeaderCode |
Constructor and Description |
---|
BinaryAttachmentResponseWriter() |
Modifier and Type | Method and Description |
---|---|
boolean |
supportsGZip(BinaryAttachmentResponse t)
Check if GZip is supported by this writer
|
void |
write(BinaryAttachmentResponse binaryAttachmentResponse,
OutputStream out,
ResponseProxy responseProxy)
Write object t to
OutputStream out |
getContentType, getEncodedContentType, getEncoder, isSetContentType, setContentType
public void write(BinaryAttachmentResponse binaryAttachmentResponse, OutputStream out, ResponseProxy responseProxy) throws IOException
ResponseWriter
OutputStream
outbinaryAttachmentResponse
- Object to writeout
- OutputStream
to be written toresponseProxy
- ResponseProxy
giving access to header and content length settersIOException
- If an error occurs during writingpublic boolean supportsGZip(BinaryAttachmentResponse t)
ResponseWriter
t
- Object to writetrue
, if GZip is supportedCopyright © 2012-2015 52north.org. All Rights Reserved.