public class BinaryResponseContent extends java.lang.Object implements ResponseContent
| Constructor and Description |
|---|
BinaryResponseContent(java.io.InputStream input) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
The method closesthe corresponding property of the class e.g.
|
java.io.InputStream |
getInputStream() |
void |
write(java.io.OutputStream outputStream)
The method writes the content of the corresponding property of the class e.g.
|
public java.io.InputStream getInputStream()
public void write(java.io.OutputStream outputStream)
throws java.io.IOException
ResponseContentwrite in interface ResponseContentoutputStream - an OutputStream object that will contain the newly added streamjava.io.IOException - if an error occurs while writing the streampublic void close()
ResponseContentclose in interface java.lang.AutoCloseableclose in interface ResponseContent