Package com.emc.documentum.rest.wire
Interface StreamingMessageReader
- All Known Implementing Classes:
AnnotatedJsonMessageReader
,AnnotatedXmlMessageReader
public interface StreamingMessageReader
An interface to read a message input stream and return it as a model instance.
-
Method Summary
Modifier and TypeMethodDescription<T,
R extends T>
Rread
(Class<? extends T> clazz, InputStream inputStream) Read the message input stream and return it as a model instance.
-
Method Details
-
read
Read the message input stream and return it as a model instance.- Type Parameters:
T
- the model class typeR
- the actual model instance type- Parameters:
clazz
- the model classinputStream
- the message input stream- Returns:
- the model instance
- Throws:
IOException
- when there are errors in reading the message
-