@Immutable @LevelUpApi(contract=INTERNAL) public interface RequestBody extends Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
getContentLength() |
String |
getContentType() |
void |
writeToOutputStream(Context context,
OutputStream outputStream)
Write the body content to the output stream.
|
describeContents, writeToParcel
void writeToOutputStream(Context context, OutputStream outputStream) throws IOException
context
- Android application context.outputStream
- the output stream to write to.IOException
- if there are any errors writing to the output stream.int getContentLength()
String getContentType()