public class KeyDataPair extends NameValuePair
| Constructor and Description |
|---|
KeyDataPair(String key,
File file,
String mimeType,
String charset)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
String |
getCharset()
Gets the charset encoding for this file upload.
|
byte[] |
getData()
Gets in-memory data assigned to file value.
|
File |
getFile() |
String |
getMimeType()
Gets the MIME type for this file upload.
|
int |
hashCode() |
void |
setData(byte[] data)
Sets file value data.
|
getName, getValue, toHttpClient, toHttpClient, toStringpublic boolean equals(Object object)
equals in class NameValuePairpublic int hashCode()
hashCode in class NameValuePairpublic String getCharset()
public String getMimeType()
public byte[] getData()
null if the file content should be used.public void setData(byte[] data)
data - byte array with file data.Copyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.