public class LiferayFileItem
extends org.apache.commons.fileupload.disk.DiskFileItem
implements com.liferay.portal.kernel.upload.FileItem
Modifier and Type | Field and Description |
---|---|
static long |
THRESHOLD_SIZE |
Constructor and Description |
---|
LiferayFileItem(String fieldName,
String contentType,
boolean formField,
String fileName,
int sizeThreshold,
File repository) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
String |
getEncodedString() |
String |
getFileName() |
String |
getFileNameExtension() |
String |
getFullFileName() |
long |
getItemSize() |
int |
getSizeThreshold() |
File |
getStoreLocation() |
String |
getString() |
protected File |
getTempFile() |
void |
setString(String encode) |
delete, finalize, get, getCharSet, getFieldName, getHeaders, getInputStream, getName, getOutputStream, getSize, getString, isFormField, isInMemory, setFieldName, setFormField, setHeaders, toString, write
public LiferayFileItem(String fieldName, String contentType, boolean formField, String fileName, int sizeThreshold, File repository)
public String getContentType()
getContentType
in interface org.apache.commons.fileupload.FileItem
getContentType
in class org.apache.commons.fileupload.disk.DiskFileItem
public String getEncodedString()
public String getFileName()
public String getFileNameExtension()
public String getFullFileName()
public long getItemSize()
public int getSizeThreshold()
public File getStoreLocation()
getStoreLocation
in class org.apache.commons.fileupload.disk.DiskFileItem
public String getString()
getString
in interface org.apache.commons.fileupload.FileItem
getString
in class org.apache.commons.fileupload.disk.DiskFileItem
public void setString(String encode)
protected File getTempFile()
getTempFile
in class org.apache.commons.fileupload.disk.DiskFileItem