public interface StreamingContent
Implementations don't need to be thread-safe.
Modifier and Type | Method and Description |
---|---|
void |
writeTo(java.io.OutputStream out)
Writes the byte content to the given output stream.
|
void writeTo(java.io.OutputStream out) throws java.io.IOException
Implementations must not close the output stream, and instead should flush the output stream. Some callers may assume that the the output stream has not been closed, and will fail to work if it has been closed.
out
- output streamjava.io.IOException
Copyright © 2011-2018 Google. All Rights Reserved.