Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.model.io
Class BlobWriter

java.lang.Object
  extended by org.nuxeo.ecm.webengine.model.io.BlobWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Blob>

@Provider
public class BlobWriter
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<Blob>

Author:
Bogdan Stefanescu

Constructor Summary
BlobWriter()
           
 
Method Summary
 long getSize(Blob arg0, java.lang.Class<?> arg1, java.lang.reflect.Type arg2, java.lang.annotation.Annotation[] arg3, javax.ws.rs.core.MediaType arg4)
           
 boolean isWriteable(java.lang.Class<?> arg0, java.lang.reflect.Type type, java.lang.annotation.Annotation[] arg2, javax.ws.rs.core.MediaType arg3)
           
 void writeTo(Blob t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobWriter

public BlobWriter()
Method Detail

writeTo

public void writeTo(Blob t,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
                    java.io.OutputStream entityStream)
             throws java.io.IOException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Blob>
Throws:
java.io.IOException

getSize

public long getSize(Blob arg0,
                    java.lang.Class<?> arg1,
                    java.lang.reflect.Type arg2,
                    java.lang.annotation.Annotation[] arg3,
                    javax.ws.rs.core.MediaType arg4)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Blob>

isWriteable

public boolean isWriteable(java.lang.Class<?> arg0,
                           java.lang.reflect.Type type,
                           java.lang.annotation.Annotation[] arg2,
                           javax.ws.rs.core.MediaType arg3)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Blob>

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.