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