public class ApacheDuplicatableInputStreamEntity extends ApacheInputStreamEntity implements DuplicatableInputStream
Class for ApacheInputStream that implements a DuplicatableInputStream. Apache connector in Jersey v2.32 supports passing an HttpEntity as the body. In this case Apache connector will not read entire data into memory. Content length is a must to use this conversion.
in| Constructor and Description |
|---|
ApacheDuplicatableInputStreamEntity(DuplicatableInputStream in,
Long contentLength) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
duplicate() |
consumeContent, getContent, getContentEncoding, getContentLength, getContentType, isChunked, isRepeatable, isStreaming, writeToavailable, close, mark, markSupported, read, read, read, reset, skippublic ApacheDuplicatableInputStreamEntity(DuplicatableInputStream in, Long contentLength)
public InputStream duplicate()
duplicate in interface DuplicatableInputStreamCopyright © 2016–2024. All rights reserved.