Class InputStreamContentSource

java.lang.Object
org.eclipse.jetty.io.content.InputStreamContentSource
All Implemented Interfaces:
Content.Source

public class InputStreamContentSource extends Object implements Content.Source

A Content.Source that is backed by an InputStream. Data is read from the InputStream into a buffer that is optionally acquired from a ByteBufferPool, and converted to a Content.Chunk that is returned from read(). If no ByteBufferPool is provided, then a ByteBufferPool.NON_POOLING is used.