org.glassfish.jersey.media.json.internal.entity
Class JsonWithPaddingProvider

java.lang.Object
  extended by org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider<JsonWithPadding>
      extended by org.glassfish.jersey.media.json.internal.entity.JsonWithPaddingProvider
All Implemented Interfaces:
MessageBodyReader<JsonWithPadding>, MessageBodyWriter<JsonWithPadding>

public class JsonWithPaddingProvider
extends AbstractMessageReaderWriterProvider<JsonWithPadding>

JSON media type message entity provider (reader & writer) for JsonWithPadding.

Author:
Jakub Podlesak, Paul Sandoz

Field Summary
 
Fields inherited from class org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider
UTF8
 
Constructor Summary
JsonWithPaddingProvider()
           
 
Method Summary
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
           
 JsonWithPadding readFrom(java.lang.Class<JsonWithPadding> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)
           
 void writeTo(JsonWithPadding t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)
           
 
Methods inherited from class org.glassfish.jersey.message.internal.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
 

Constructor Detail

JsonWithPaddingProvider

public JsonWithPaddingProvider()
Method Detail

isReadable

public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations,
                          MediaType mediaType)

readFrom

public JsonWithPadding readFrom(java.lang.Class<JsonWithPadding> type,
                                java.lang.reflect.Type genericType,
                                java.lang.annotation.Annotation[] annotations,
                                MediaType mediaType,
                                MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
                                java.io.InputStream entityStream)
                         throws java.io.IOException,
                                WebApplicationException
Throws:
java.io.IOException
WebApplicationException

isWriteable

public boolean isWriteable(java.lang.Class<?> type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] annotations,
                           MediaType mediaType)

writeTo

public void writeTo(JsonWithPadding t,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    MediaType mediaType,
                    MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
                    java.io.OutputStream entityStream)
             throws java.io.IOException,
                    WebApplicationException
Throws:
java.io.IOException
WebApplicationException


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.