@Provider public class GadgetStreamWriter extends Object implements MessageBodyWriter<GadgetStream>
Constructor and Description |
---|
GadgetStreamWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(GadgetStream t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
void |
writeTo(GadgetStream t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public long getSize(GadgetStream t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
getSize
in interface MessageBodyWriter<GadgetStream>
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isWriteable
in interface MessageBodyWriter<GadgetStream>
public void writeTo(GadgetStream t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException
writeTo
in interface MessageBodyWriter<GadgetStream>
IOException
WebApplicationException
Copyright © 2013 Nuxeo SA. All Rights Reserved.