public static final class SourceProvider.SourceWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<Source>
| Constructor and Description |
|---|
SourceWriter(Injectable<SAXParserFactory> spf,
Injectable<TransformerFactory> tf) |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(Source o,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> t,
Type gt,
Annotation[] as,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(Source o,
Class<?> t,
Type gt,
Annotation[] as,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public SourceWriter(@Context
Injectable<SAXParserFactory> spf,
@Context
Injectable<TransformerFactory> tf)
public boolean isWriteable(Class<?> t, Type gt, Annotation[] as, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Source>public long getSize(Source o, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Source>public void writeTo(Source o, Class<?> t, Type gt, Annotation[] as, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Source>IOExceptionCopyright © 2016 Oracle Corporation. All rights reserved.