com.sun.jersey.core.impl.provider.entity
Class SourceProvider.SourceWriter
java.lang.Object
com.sun.jersey.core.impl.provider.entity.SourceProvider.SourceWriter
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyWriter<javax.xml.transform.Source>
- Enclosing class:
- SourceProvider
public static final class SourceProvider.SourceWriter
- extends java.lang.Object
- implements javax.ws.rs.ext.MessageBodyWriter<javax.xml.transform.Source>
Method Summary |
long |
getSize(javax.xml.transform.Source o,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
boolean |
isWriteable(java.lang.Class<?> t,
java.lang.reflect.Type gt,
java.lang.annotation.Annotation[] as,
javax.ws.rs.core.MediaType mediaType)
|
void |
writeTo(javax.xml.transform.Source o,
java.lang.Class<?> t,
java.lang.reflect.Type gt,
java.lang.annotation.Annotation[] as,
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceProvider.SourceWriter
public SourceProvider.SourceWriter(@Context
Injectable<javax.xml.parsers.SAXParserFactory> spf,
@Context
Injectable<javax.xml.transform.TransformerFactory> tf)
isWriteable
public boolean isWriteable(java.lang.Class<?> t,
java.lang.reflect.Type gt,
java.lang.annotation.Annotation[] as,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<javax.xml.transform.Source>
getSize
public long getSize(javax.xml.transform.Source o,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<javax.xml.transform.Source>
writeTo
public void writeTo(javax.xml.transform.Source o,
java.lang.Class<?> t,
java.lang.reflect.Type gt,
java.lang.annotation.Annotation[] as,
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<javax.xml.transform.Source>
- Throws:
java.io.IOException
Copyright © 2011 Sun Microsystems, Inc. All Rights Reserved.