public class MultipartBody extends HttpBody
| Modifier and Type | Class and Description |
|---|---|
static class |
MultipartBody.Builder
The builder of
MultipartBody |
| Modifier and Type | Method and Description |
|---|---|
String |
getBoundary()
Returns the boundary
|
Charset |
getCharset()
Returns the charset
|
InputStream |
getContent()
Returns the content as input stream
|
MimeType |
getContentType()
Returns the media type
|
List<Part> |
getParts()
Returns the parts
|
MultipartBody.Builder |
newBuilder()
Create a
MultipartBody.Builder |
void |
writeTo(OutputStream out)
Write this entity into
out |
getCharset, getContentLength, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstancepublic Charset getCharset()
HttpEntitygetCharset in interface HttpEntitygetCharset in class HttpBodypublic String getBoundary()
public MimeType getContentType()
HttpEntitypublic InputStream getContent() throws IOException
HttpEntityIOExceptionpublic void writeTo(OutputStream out) throws IOException
HttpEntityoutwriteTo in interface HttpEntitywriteTo in class HttpBodyout - The output streamIOException - if write failedpublic MultipartBody.Builder newBuilder()
MultipartBody.BuilderCopyright © 2015–2017 SDKLite. All rights reserved.