Class OutputStreamContentSource

java.lang.Object
org.eclipse.jetty.io.content.OutputStreamContentSource
All Implemented Interfaces:
Closeable, AutoCloseable, Content.Source

public class OutputStreamContentSource extends Object implements Content.Source, Closeable

A Content.Source that provides content asynchronously through an OutputStream.

Bytes written to the OutputStream returned by getOutputStream() are converted to a Content.Chunk and returned from read().

The OutputStream must be closed to signal that all the content has been written.

See Also: