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()
TypedOutput
fileName
in interface TypedOutput
public String mimeType()
TypedOutput
mimeType
in interface TypedOutput
public long length()
TypedOutput
length
in interface TypedOutput
public void writeTo(OutputStream out) throws IOException
TypedOutput
writeTo
in interface TypedOutput
IOException
Copyright © 2015 Square, Inc.. All Rights Reserved.