| com.gargoylesoftware.htmlunit.KeyValuePair com.gargoylesoftware.htmlunit.KeyDataPair
KeyDataPair | public class KeyDataPair extends KeyValuePair (Code) | | A holder for a key/value pair that represents a file to upload.
version: $Revision: 2132 $ author: Brad Clarke author: David D. Kilzer author: Mike Bowler |
KeyDataPair | public KeyDataPair(String key, File file, String contentType, String charset)(Code) | | Create an instance.
Parameters: key - The key. Parameters: file - The file. Parameters: contentType - the content type Parameters: charset - the charset encoding |
getCharset | public String getCharset()(Code) | | Gets the charset encoding for this file upload
the charset |
getContentType | public String getContentType()(Code) | | Gets the content type for this file upload
the content type |
getFile | public File getFile()(Code) | | The java.io.File object if the file exists, else null . |
|
|