Interface StreamingContent (1.43.2)

public interface StreamingContent

Deprecated. use com.google.common.io.ByteSink

Streaming content interface to write bytes to an output stream.

Implementations don't need to be thread-safe.

Methods

writeTo(OutputStream out) (deprecated)

public abstract void writeTo(OutputStream out)

Writes the byte content to the given output stream.

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.

Parameter
Name Description
out OutputStream

output stream

Exceptions
Type Description
IOException