Constructor and Description |
---|
ObjectWriter()
Default constructor.
|
ObjectWriter(MarshallerRegistry registry)
Construct an ObjectWriter instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getSize(Object obj,
Class<?> clz,
Type type,
Annotation[] aAnnotation,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> clz,
Type type,
Annotation[] aAnnotation,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(Object obj,
Class<?> clz,
Type type,
Annotation[] aAnnotation,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream stream) |
public ObjectWriter()
public ObjectWriter(MarshallerRegistry registry)
registry
- marshaller registry to usepublic boolean isWriteable(Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
public long getSize(Object obj, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
public void writeTo(Object obj, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream stream) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
IOException
javax.ws.rs.WebApplicationException