public static interface IO.InputStreamHandler
An InputStreamHandler provides logic to read an InputStream into specified Type.
If the read is successful then it returns an instance of given type. Otherwise it raised an UnexpectedException.
| Modifier and Type | Method and Description |
|---|---|
<T> T |
read(InputStream is,
Type targetType,
MimeType mimeType,
Object hint)
Read an
InputStream and construct an instance of type. |
boolean |
support(Type type)
Report if the given
type is supported by the handler. |
boolean support(Type type)
Report if the given type is supported by the handler.
type - A typetrue if the type specified is supported or false otherwise.<T> T read(InputStream is, Type targetType, MimeType mimeType, Object hint)
Read an InputStream and construct an instance of type.
T - the generic typeis - the input streamtargetType - the typehint - the read hintCopyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.