com.sun.jersey.core.impl.provider.entity
Class SourceProvider.SourceWriter

java.lang.Object
  extended by 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>


Constructor Summary
SourceProvider.SourceWriter(Injectable<javax.xml.parsers.SAXParserFactory> spf, Injectable<javax.xml.transform.TransformerFactory> tf)
           
 
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
 

Constructor Detail

SourceProvider.SourceWriter

public SourceProvider.SourceWriter(@Context
                                   Injectable<javax.xml.parsers.SAXParserFactory> spf,
                                   @Context
                                   Injectable<javax.xml.transform.TransformerFactory> tf)
Method Detail

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.