public final class FormUrlEncodedTypedOutput extends Object implements TypedOutput
| Constructor and Description |
|---|
FormUrlEncodedTypedOutput() |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(String name,
boolean encodeName,
String value,
boolean encodeValue) |
void |
addField(String name,
String value) |
String |
fileName()
Original filename.
|
long |
length()
Length in bytes or -1 if unknown.
|
String |
mimeType()
Returns the mime type.
|
void |
writeTo(OutputStream out)
Writes these bytes to the given output stream.
|
public String fileName()
TypedOutputfileName in interface TypedOutputpublic String mimeType()
TypedOutputmimeType in interface TypedOutputpublic long length()
TypedOutputlength in interface TypedOutputpublic void writeTo(OutputStream out) throws IOException
TypedOutputwriteTo in interface TypedOutputIOExceptionCopyright © 2015 Square, Inc.. All Rights Reserved.