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 Type
  Method
  Description
  `<T, R extends T>
  R`
  `read(Class<? extends T> clazz, InputStream inputStream)`
  Read the message input stream and return it as a model instance.

- ## Method Details

  - ### read

    <T, R extends T> R read(Class<? extends T> clazz, InputStream inputStream) throws IOException
    Read the message input stream and return it as a model instance.
    Type Parameters:
      `T` - the model class type
      `R` - the actual model instance type
    Parameters:
      `clazz` - the model class
      `inputStream` - the message input stream
    Returns:
      the model instance
    Throws:
      `IOException` - when there are errors in reading the message