org.nuxeo.ecm.webengine.model.io
Class BlobWriter
java.lang.Object
org.nuxeo.ecm.webengine.model.io.BlobWriter
- All Implemented Interfaces:
- MessageBodyWriter<Blob>
@Provider
public class BlobWriter
- extends Object
- implements MessageBodyWriter<Blob>
- Author:
- Bogdan Stefanescu
Method Summary |
long |
getSize(Blob arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4)
|
boolean |
isWriteable(Class<?> arg0,
Type type,
Annotation[] arg2,
MediaType arg3)
|
void |
writeTo(Blob t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
BlobWriter
public BlobWriter()
writeTo
public void writeTo(Blob t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException
- Specified by:
writeTo
in interface MessageBodyWriter<Blob>
- Throws:
IOException
getSize
public long getSize(Blob arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4)
- Specified by:
getSize
in interface MessageBodyWriter<Blob>
isWriteable
public boolean isWriteable(Class<?> arg0,
Type type,
Annotation[] arg2,
MediaType arg3)
- Specified by:
isWriteable
in interface MessageBodyWriter<Blob>
Copyright © 2011 Nuxeo SAS. All Rights Reserved.