public final class UploadItem extends Object
| Constructor and Description |
|---|
UploadItem(String fieldname,
String contenttype,
String charset,
String filename,
boolean isfile) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called from user code to release the file attached to this item.
|
String |
getCharSet()
If known, the character set for how the data is to be decoded.
|
String |
getContentType()
If specified, the MIME content type the browser provided during the upload.
|
File |
getFile()
Return a file for this item.
|
String |
getName()
The name of the input field.
|
String |
getRemoteFileName()
If specified, the name that the browser provided as the "local file name", i.e.
|
int |
getSize()
If this is a FILE item, this contains the size, in bytes, of the uploaded file.
|
String |
getValue()
If this is a parameter and not a File, this contains the parameter's value, decoded
using the browser-specified character encoding.
|
boolean |
isEmpty()
SILLY_INTERFACE? If this holds no value it returns true.
|
boolean |
isFile()
T if this actually contains a file (it is not just a parameter).
|
void |
setFile(File f)
Called when the item is resident in a file.
|
public boolean isFile()
public void setFile(File f)
f - @Nullable public String getCharSet()
public String getValue()
@Nullable public String getRemoteFileName()
@Nullable public String getContentType()
public int getSize()
public boolean isEmpty()
public File getFile()
to.etc.server.upload.UploadItem#getFile()public void close()
Copyright © 2017 etc.to. All rights reserved.