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 backed by an OutputStream. Any bytes written to the OutputStream returned by getOutputStream() is converted to a Content.Chunk and returned from read(). If necessary, any Runnable passed to demand(Runnable) is invoked.

See Also: