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, toString
public boolean equals(Object object)
equals
in class NameValuePair
public int hashCode()
hashCode
in class NameValuePair
public 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.