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<Source>
Enclosing class:
SourceProvider

public static final class SourceProvider.SourceWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<Source>


Constructor Summary
SourceProvider.SourceWriter(Injectable<SAXParserFactory> spf, Injectable<TransformerFactory> tf)
           
 
Method Summary
 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)
           
 
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<SAXParserFactory> spf,
                                   @Context
                                   Injectable<TransformerFactory> tf)
Method Detail

isWriteable

public boolean isWriteable(Class<?> t,
                           Type gt,
                           Annotation[] as,
                           javax.ws.rs.core.MediaType mediaType)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Source>

getSize

public long getSize(Source o,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Source>

writeTo

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
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Source>
Throws:
IOException


Copyright © 2011 Oracle Corporation. All Rights Reserved.