public class KeyDataPair extends NameValuePair
| Constructor and Description |
|---|
KeyDataPair(String key,
File file,
String fileName,
String mimeType,
Charset charset)
Creates an instance.
|
KeyDataPair(String key,
File file,
String fileName,
String mimeType,
String charset)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Charset |
getCharset()
Gets the charset encoding for this file upload.
|
byte[] |
getData()
Gets in-memory data assigned to file value.
|
File |
getFile() |
String |
getFileName() |
String |
getMimeType()
Gets the MIME type for this file upload.
|
int |
hashCode() |
KeyDataPair |
normalized()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
void |
setData(byte[] data)
Sets file value data.
|
getName, getValue, toStringpublic KeyDataPair(String key, File file, String fileName, String mimeType, String charset)
key - the keyfile - the filefileName - the name of the filemimeType - the MIME typecharset - the charset encodingpublic boolean equals(Object object)
equals in class NameValuePairpublic int hashCode()
hashCode in class NameValuePairpublic String getFileName()
public Charset 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.public KeyDataPair normalized()
normalized in class NameValuePairNameValuePairCopyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.