Apache CXF API

org.apache.cxf.jaxrs.provider
Class PrimitiveTextProvider

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.PrimitiveTextProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<java.lang.Object>, javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>

public class PrimitiveTextProvider
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyReader<java.lang.Object>, javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>


Constructor Summary
PrimitiveTextProvider()
           
 
Method Summary
 long getSize(java.lang.Object t)
           
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
           
 boolean isWriteable(java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
           
 java.lang.Object readFrom(java.lang.Class type, java.lang.reflect.Type genType, java.lang.annotation.Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap headers, java.io.InputStream is)
           
 void writeTo(java.lang.Object obj, java.lang.Class type, java.lang.reflect.Type genType, java.lang.annotation.Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap headers, java.io.OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveTextProvider

public PrimitiveTextProvider()
Method Detail

isReadable

public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>

readFrom

public java.lang.Object readFrom(java.lang.Class type,
                                 java.lang.reflect.Type genType,
                                 java.lang.annotation.Annotation[] anns,
                                 javax.ws.rs.core.MediaType mt,
                                 javax.ws.rs.core.MultivaluedMap headers,
                                 java.io.InputStream is)
                          throws java.io.IOException
Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
Throws:
java.io.IOException

getSize

public long getSize(java.lang.Object t)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>

isWriteable

public boolean isWriteable(java.lang.Class type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] annotations)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>

writeTo

public void writeTo(java.lang.Object obj,
                    java.lang.Class type,
                    java.lang.reflect.Type genType,
                    java.lang.annotation.Annotation[] anns,
                    javax.ws.rs.core.MediaType mt,
                    javax.ws.rs.core.MultivaluedMap headers,
                    java.io.OutputStream os)
             throws java.io.IOException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
Throws:
java.io.IOException

Apache CXF API

Apache CXF