RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

org.jboss.resteasy.core.messagebody
Class ReaderUtility

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

public abstract class ReaderUtility
extends 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  RuntimeException createReaderNotFound(Type genericType, javax.ws.rs.core.MediaType mediaType)
           
<T> T
doRead(Class<T> type, javax.ws.rs.core.MediaType mediaType, InputStream is)
           
<T> T
doRead(Class<T> type, Type genericType, javax.ws.rs.core.MediaType mediaType, Annotation[] annotations, javax.ws.rs.core.MultivaluedMap<String,String> requestHeaders, InputStream inputStream)
           
<T> T
doRead(Class<T> type, Type genericType, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> requestHeaders, InputStream is)
           
 Object doRead(HttpRequest request, Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
static
<T> T
read(Class<T> type, javax.ws.rs.core.MediaType mediaType, byte[] buffer)
           
static
<T> T
read(Class<T> type, javax.ws.rs.core.MediaType mt, InputStream is)
           
static
<T> T
read(Class<T> type, String contentType, byte[] buffer)
           
static
<T> T
read(Class<T> type, String contentType, 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(Class<T> type,
                         String contentType,
                         String buffer)
              throws IOException
Throws:
IOException

read

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

read

public static <T> T read(Class<T> type,
                         javax.ws.rs.core.MediaType mediaType,
                         byte[] buffer)
              throws IOException
Throws:
IOException

read

public static <T> T read(Class<T> type,
                         javax.ws.rs.core.MediaType mt,
                         InputStream is)
              throws IOException
Throws:
IOException

doRead

public <T> T doRead(Class<T> type,
                    javax.ws.rs.core.MediaType mediaType,
                    InputStream is)
         throws IOException
Throws:
IOException

doRead

public <T> T doRead(Class<T> type,
                    Type genericType,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<String,String> requestHeaders,
                    InputStream is)
         throws IOException
Throws:
IOException

doRead

public Object doRead(HttpRequest request,
                     Class type,
                     Type genericType,
                     Annotation[] annotations,
                     javax.ws.rs.core.MediaType mediaType)
              throws IOException
Throws:
IOException

doRead

public <T> T doRead(Class<T> type,
                    Type genericType,
                    javax.ws.rs.core.MediaType mediaType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MultivaluedMap<String,String> requestHeaders,
                    InputStream inputStream)
         throws IOException
Throws:
IOException

createReaderNotFound

public abstract RuntimeException createReaderNotFound(Type genericType,
                                                      javax.ws.rs.core.MediaType mediaType)

RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.