Package com.emc.documentum.rest.wire
Interface StreamingMessageWriter
- All Known Implementing Classes:
AnnotatedJsonMessageWriter,AnnotatedXmlMessageWriter
public interface StreamingMessageWriter
An interface to write the model instance as the message output stream.
-
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(Object t, OutputStream outputStream) Write the model to message output stream.voidwrite(Object t, OutputStream outputStream, org.springframework.http.MediaType contentType) Write the model to message output stream.
-
Method Details
-
write
Write the model to message output stream.- Parameters:
t- the model instanceoutputStream- the message output stream- Throws:
IOException- when there are errors in writing the object
-
write
void write(Object t, OutputStream outputStream, org.springframework.http.MediaType contentType) throws IOException Write the model to message output stream.- Parameters:
t- the model instancecontentType- the content type of the output messageoutputStream- the message output stream- Throws:
IOException- when there are errors in writing the object
-