public class InputStreamBodyWithLength
extends org.apache.http.entity.mime.content.InputStreamBody
InputStreamBody
, that holds the total streamed size.Constructor and Description |
---|
InputStreamBodyWithLength(InputStream in,
String filename,
long length)
Creates an instance of
InputStreamBodyWithLength . |
InputStreamBodyWithLength(InputStream in,
String mimeType,
String filename,
long length)
Creates an instance of
InputStreamBodyWithLength . |
Modifier and Type | Method and Description |
---|---|
long |
getContentLength()
Returns size of the streamed content.
|
getFilename, getInputStream, getTransferEncoding, writeTo
public InputStreamBodyWithLength(InputStream in, String filename, long length)
InputStreamBodyWithLength
.in
- inputstreamfilename
- file namelength
- file sizepublic InputStreamBodyWithLength(InputStream in, String mimeType, String filename, long length)
InputStreamBodyWithLength
.in
- inputstreammimeType
- file mime typefilename
- file namelength
- file sizepublic long getContentLength()
getContentLength
in interface org.apache.http.entity.mime.content.ContentDescriptor
getContentLength
in class org.apache.http.entity.mime.content.InputStreamBody
Copyright © 2014 OpenEstate. All rights reserved.