@Provider public class JenaModelWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<com.hp.hpl.jena.rdf.model.Model>
| Constructor and Description |
|---|
JenaModelWriter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(com.hp.hpl.jena.rdf.model.Model t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
ByteArrayOutputStream |
toStream(com.hp.hpl.jena.rdf.model.Model t,
String mediaType) |
void |
writeTo(com.hp.hpl.jena.rdf.model.Model t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<com.hp.hpl.jena.rdf.model.Model>public long getSize(com.hp.hpl.jena.rdf.model.Model t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<com.hp.hpl.jena.rdf.model.Model>public ByteArrayOutputStream toStream(com.hp.hpl.jena.rdf.model.Model t, String mediaType)
public void writeTo(com.hp.hpl.jena.rdf.model.Model t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException,
javax.ws.rs.WebApplicationException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<com.hp.hpl.jena.rdf.model.Model>IOExceptionjavax.ws.rs.WebApplicationExceptionCopyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.