| Package | Description |
|---|---|
| com.sdklite.net |
Provides network foundation classes
|
| com.sdklite.net.http |
Provides foundation classes for HTTP protocol
|
| Modifier and Type | Method and Description |
|---|---|
static MimeType |
MimeType.guess(File file) |
static MimeType |
MimeType.guess(File file,
MimeType defaultType) |
static MimeType |
MimeType.guess(String url) |
static MimeType |
MimeType.guess(String url,
MimeType defaultType) |
static MimeType |
MimeType.parse(String string)
Parse string as
MimeType |
| Modifier and Type | Method and Description |
|---|---|
static MimeType |
MimeType.guess(File file,
MimeType defaultType) |
static MimeType |
MimeType.guess(String url,
MimeType defaultType) |
| Constructor and Description |
|---|
MimeType(MimeType mimeType)
Clone an instance from
mimeType |
| Modifier and Type | Method and Description |
|---|---|
MimeType |
MultipartBody.getContentType() |
MimeType |
HttpEntity.getContentType()
Returns the media type
|
MimeType |
FormBody.getContentType() |
| Modifier and Type | Method and Description |
|---|---|
MultipartBody.Builder |
MultipartBody.Builder.addPart(String name,
byte[] data,
MimeType contentType)
Appends the specified name and part entity into parts
|
MultipartBody.Builder |
MultipartBody.Builder.addPart(String name,
File file,
MimeType contentType)
Appends the specified name and part entity into parts
|
MultipartBody.Builder |
MultipartBody.Builder.addPart(String name,
String text,
MimeType contentType)
Appends the specified name and part entity into parts
|
static HttpBody |
HttpBody.newInstance(MimeType contentType,
byte[] buf) |
static HttpBody |
HttpBody.newInstance(MimeType contentType,
byte[] buf,
int offset,
int length) |
static HttpBody |
HttpBody.newInstance(MimeType contentType,
File file) |
static HttpBody |
HttpBody.newInstance(MimeType contentType,
String s) |
Copyright © 2015–2017 SDKLite. All rights reserved.