Class PathContentProvider

java.lang.Object
org.eclipse.jetty.client.util.AbstractTypedContentProvider
org.eclipse.jetty.client.util.PathContentProvider
All Implemented Interfaces:
Iterable<ByteBuffer>, ContentProvider, ContentProvider.Typed

@Deprecated public class PathContentProvider extends AbstractTypedContentProvider
Deprecated.
use PathRequestContent instead.

A ContentProvider for files using JDK 7's java.nio.file APIs.

It is possible to specify, at the constructor, a buffer size used to read content from the stream, by default 4096 bytes. If a ByteBufferPool is provided via setByteBufferPool(ByteBufferPool), the buffer will be allocated from that pool, otherwise one buffer will be allocated and used to read the file.