public abstract class AbstractJsonUnmarshaller<T,O,R,E extends IOException> extends Object
| Constructor and Description |
|---|
AbstractJsonUnmarshaller(Class<T> clazz,
Class<R> errorResponseClass,
Map<Class,Object> injectionValues) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract E |
createException(R response) |
protected IOException |
createIOException(String content,
Exception exception) |
static String |
toString(InputStream inputStream,
String contentEncoding) |
O |
unmarshal(InputStream inputStream) |
protected abstract O |
unmarshal(String body) |
protected T |
validate(String body) |
public O unmarshal(InputStream inputStream) throws IOException, E extends IOException
IOExceptionpublic static String toString(InputStream inputStream, String contentEncoding) throws IOException
IOExceptionprotected abstract O unmarshal(String body) throws IOException, E extends IOException
IOExceptionprotected T validate(String body) throws IOException, E extends IOException
IOExceptionprotected IOException createIOException(String content, Exception exception)
Copyright © 2007–2017 Andreas W. Bartels. All rights reserved.