org.jboss.resteasy.core.messagebody
Class ReaderUtility

java.lang.Object
  extended by org.jboss.resteasy.core.messagebody.ReaderUtility

public abstract class ReaderUtility
extends java.lang.Object

Utility for accessing RESTEasy's MessageBodyReader setup

Version:
$Revision: 1 $
Author:
Solomon Duskis

Constructor Summary
ReaderUtility()
           
ReaderUtility(ResteasyProviderFactory factory, MessageBodyReaderInterceptor[] interceptors)
           
 
Method Summary
abstract  java.lang.RuntimeException createReaderNotFound(java.lang.reflect.Type genericType, MediaType mediaType)
           
<T> T
doRead(java.lang.Class<T> type, MediaType mediaType, java.io.InputStream is)
           
<T> T
doRead(java.lang.Class<T> type, java.lang.reflect.Type genericType, MediaType mediaType, java.lang.annotation.Annotation[] annotations, MultivaluedMap<java.lang.String,java.lang.String> requestHeaders, java.io.InputStream inputStream)
           
<T> T
doRead(java.lang.Class<T> type, java.lang.reflect.Type genericType, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.String> requestHeaders, java.io.InputStream is)
           
 java.lang.Object doRead(HttpRequest request, java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
           
static
<T> T
read(java.lang.Class<T> type, MediaType mediaType, byte[] buffer)
           
static
<T> T
read(java.lang.Class<T> type, MediaType mt, java.io.InputStream is)
           
static
<T> T
read(java.lang.Class<T> type, java.lang.String contentType, byte[] buffer)
           
static
<T> T
read(java.lang.Class<T> type, java.lang.String contentType, java.lang.String buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReaderUtility

public ReaderUtility()

ReaderUtility

public ReaderUtility(ResteasyProviderFactory factory,
                     MessageBodyReaderInterceptor[] interceptors)
Method Detail

read

public static <T> T read(java.lang.Class<T> type,
                         java.lang.String contentType,
                         java.lang.String buffer)
              throws java.io.IOException
Throws:
java.io.IOException

read

public static <T> T read(java.lang.Class<T> type,
                         java.lang.String contentType,
                         byte[] buffer)
              throws java.io.IOException
Throws:
java.io.IOException

read

public static <T> T read(java.lang.Class<T> type,
                         MediaType mediaType,
                         byte[] buffer)
              throws java.io.IOException
Throws:
java.io.IOException

read

public static <T> T read(java.lang.Class<T> type,
                         MediaType mt,
                         java.io.InputStream is)
              throws java.io.IOException
Throws:
java.io.IOException

doRead

public <T> T doRead(java.lang.Class<T> type,
                    MediaType mediaType,
                    java.io.InputStream is)
         throws java.io.IOException
Throws:
java.io.IOException

doRead

public <T> T doRead(java.lang.Class<T> type,
                    java.lang.reflect.Type genericType,
                    MediaType mediaType,
                    MultivaluedMap<java.lang.String,java.lang.String> requestHeaders,
                    java.io.InputStream is)
         throws java.io.IOException
Throws:
java.io.IOException

doRead

public java.lang.Object doRead(HttpRequest request,
                               java.lang.Class type,
                               java.lang.reflect.Type genericType,
                               java.lang.annotation.Annotation[] annotations,
                               MediaType mediaType)
                        throws java.io.IOException
Throws:
java.io.IOException

doRead

public <T> T doRead(java.lang.Class<T> type,
                    java.lang.reflect.Type genericType,
                    MediaType mediaType,
                    java.lang.annotation.Annotation[] annotations,
                    MultivaluedMap<java.lang.String,java.lang.String> requestHeaders,
                    java.io.InputStream inputStream)
         throws java.io.IOException
Throws:
java.io.IOException

createReaderNotFound

public abstract java.lang.RuntimeException createReaderNotFound(java.lang.reflect.Type genericType,
                                                                MediaType mediaType)


Copyright © 2009. All Rights Reserved.