public abstract class ReaderUtility extends Object
Constructor and Description |
---|
ReaderUtility() |
ReaderUtility(ResteasyProviderFactory factory,
ReaderInterceptor[] interceptors) |
Modifier and Type | Method and Description |
---|---|
abstract RuntimeException |
createReaderNotFound(Type genericType,
MediaType mediaType) |
<T> T |
doRead(Class<T> type,
MediaType mediaType,
InputStream is) |
<T> T |
doRead(Class<T> type,
Type genericType,
MediaType mediaType,
Annotation[] annotations,
MultivaluedMap<String,String> requestHeaders,
InputStream inputStream) |
<T> T |
doRead(Class<T> type,
Type genericType,
MediaType mediaType,
MultivaluedMap<String,String> requestHeaders,
InputStream is) |
Object |
doRead(HttpRequest request,
Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
static <T> T |
read(Class<T> type,
MediaType mediaType,
byte[] buffer) |
static <T> T |
read(Class<T> type,
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) |
public ReaderUtility()
public ReaderUtility(ResteasyProviderFactory factory, ReaderInterceptor[] interceptors)
public static <T> T read(Class<T> type, String contentType, String buffer) throws IOException
IOException
public static <T> T read(Class<T> type, String contentType, byte[] buffer) throws IOException
IOException
public static <T> T read(Class<T> type, MediaType mediaType, byte[] buffer) throws IOException
IOException
public static <T> T read(Class<T> type, MediaType mt, InputStream is) throws IOException
IOException
public <T> T doRead(Class<T> type, MediaType mediaType, InputStream is) throws IOException
IOException
public <T> T doRead(Class<T> type, Type genericType, MediaType mediaType, MultivaluedMap<String,String> requestHeaders, InputStream is) throws IOException
IOException
public Object doRead(HttpRequest request, Class type, Type genericType, Annotation[] annotations, MediaType mediaType) throws IOException
IOException
public <T> T doRead(Class<T> type, Type genericType, MediaType mediaType, Annotation[] annotations, MultivaluedMap<String,String> requestHeaders, InputStream inputStream) throws IOException
IOException
public abstract RuntimeException createReaderNotFound(Type genericType, MediaType mediaType)
Copyright © 2021 JBoss by Red Hat. All rights reserved.