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, toString
public boolean equals(Object object)
equals
in class NameValuePair
public int hashCode()
hashCode
in class NameValuePair
public 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 NameValuePair
NameValuePair
Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.