public interface HttpEncoding
Implementations don't need to be thread-safe.
Modifier and Type | Method and Description |
---|---|
void |
encode(StreamingContent content,
OutputStream out)
Encodes the streaming content into the output stream.
|
String |
getName()
Returns the content encoding name (for example
"gzip" ) or null for none. |
String getName()
"gzip"
) or null
for none.void encode(StreamingContent content, OutputStream out) throws IOException
Implementations must not close the output stream, and instead should flush the output stream. Some callers may assume that the output stream has not been closed, and will fail to work if it has been closed.
content
- streaming contentout
- output streamIOException
Copyright © 2011–2019 Google. All rights reserved.