public class KeyDataPair
extends org.apache.commons.httpclient.NameValuePair
Constructor and Description |
---|
KeyDataPair(String key,
File file,
String contentType,
String charset)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getCharset()
Gets the charset encoding for this file upload.
|
String |
getContentType()
Gets the content type for this file upload.
|
byte[] |
getData()
Gets in-memory data assigned to file value.
|
File |
getFile() |
void |
setData(byte[] data)
Sets file value data.
|
public String getCharset()
public String getContentType()
public byte[] getData()
null
if the file content should be used.public void setData(byte[] data)
data
- byte array with file data.Copyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.