public class UploadPayloadInputStream extends UploadPayload
| Constructor and Description |
|---|
UploadPayloadInputStream(java.io.InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.HttpEntity |
getEntity()
Returns the payload as an HttpEntity, so it can be uploaded to the ObjectStore
|
Etag |
getEtag()
Returns the MD5 hash value in an Etag header
|
SegmentationPlan |
getSegmentationPlan(java.lang.Long segmentationSize)
Sets up the plan to upload the payload in segments
|
boolean |
mustBeSegmented(java.lang.Long segmentationSize)
Checks whether the payload must be segmented into two or more separate objects to circumvent
the max object size
|
public UploadPayloadInputStream(java.io.InputStream inputStream)
public org.apache.http.HttpEntity getEntity()
UploadPayloadgetEntity in class UploadPayloadpublic boolean mustBeSegmented(java.lang.Long segmentationSize)
UploadPayloadmustBeSegmented in class UploadPayloadsegmentationSize - size to check the current payload size againstpublic Etag getEtag() throws java.io.IOException
UploadPayloadgetEtag in class UploadPayloadjava.io.IOException - when DigestUtils.md5Hex failspublic SegmentationPlan getSegmentationPlan(java.lang.Long segmentationSize) throws java.io.IOException
UploadPayloadgetSegmentationPlan in class UploadPayloadsegmentationSize - the size of an individual segmentjava.io.IOException - when the segmentation plan cannot be drawn upCopyright © 2012-2020 42 BV. All Rights Reserved.