com.sun.jersey.json.impl.provider.entity
Class JSONObjectProvider

java.lang.Object
  extended by com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider<T>
      extended by com.sun.jersey.json.impl.provider.entity.JSONLowLevelProvider<org.codehaus.jettison.json.JSONObject>
          extended by com.sun.jersey.json.impl.provider.entity.JSONObjectProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<org.codehaus.jettison.json.JSONObject>, javax.ws.rs.ext.MessageBodyWriter<org.codehaus.jettison.json.JSONObject>
Direct Known Subclasses:
JSONObjectProvider.App, JSONObjectProvider.General

public class JSONObjectProvider
extends JSONLowLevelProvider<org.codehaus.jettison.json.JSONObject>

Author:
japod

Nested Class Summary
static class JSONObjectProvider.App
           
static class JSONObjectProvider.General
           
 
Field Summary
 
Fields inherited from class com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider
UTF8
 
Method Summary
 org.codehaus.jettison.json.JSONObject readFrom(Class<org.codehaus.jettison.json.JSONObject> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 void writeTo(org.codehaus.jettison.json.JSONObject t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 
Methods inherited from class com.sun.jersey.json.impl.provider.entity.JSONLowLevelProvider
isReadable, isSupported, isWriteable
 
Methods inherited from class com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider
getCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readFrom

public org.codehaus.jettison.json.JSONObject readFrom(Class<org.codehaus.jettison.json.JSONObject> type,
                                                      Type genericType,
                                                      Annotation[] annotations,
                                                      javax.ws.rs.core.MediaType mediaType,
                                                      javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
                                                      InputStream entityStream)
                                               throws IOException
Throws:
IOException

writeTo

public void writeTo(org.codehaus.jettison.json.JSONObject t,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
                    OutputStream entityStream)
             throws IOException
Throws:
IOException


Copyright © 2011 Oracle Corporation. All Rights Reserved.