Liferay 6.2-ce-ga5

com.liferay.portal.upload
Class LiferayFileItem

java.lang.Object
  extended by org.apache.commons.fileupload.disk.DiskFileItem
      extended by com.liferay.portal.upload.LiferayFileItem
All Implemented Interfaces:
Serializable, org.apache.commons.fileupload.FileItem, org.apache.commons.fileupload.FileItemHeadersSupport

public class LiferayFileItem
extends org.apache.commons.fileupload.disk.DiskFileItem
implements FileItem

See Also:
Serialized Form

Field Summary
static int THRESHOLD_SIZE
           
 
Fields inherited from class org.apache.commons.fileupload.disk.DiskFileItem
DEFAULT_CHARSET
 
Constructor Summary
LiferayFileItem(String fieldName, String contentType, boolean isFormField, String fileName, int sizeThreshold, File repository)
           
 
Method Summary
 String getContentType()
           
 String getEncodedString()
           
 String getFileName()
           
 String getFileNameExtension()
           
 String getFullFileName()
           
 int getSizeThreshold()
           
 String getString()
           
protected  File getTempFile()
           
 void setString(String encode)
           
 
Methods inherited from class org.apache.commons.fileupload.disk.DiskFileItem
delete, finalize, get, getCharSet, getFieldName, getHeaders, getInputStream, getName, getOutputStream, getSize, getStoreLocation, getString, isFormField, isInMemory, setFieldName, setFormField, setHeaders, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.upload.FileItem
delete, getFieldName, getInputStream, getSize, getStoreLocation, isFormField, isInMemory
 

Field Detail

THRESHOLD_SIZE

public static final int THRESHOLD_SIZE
Constructor Detail

LiferayFileItem

public LiferayFileItem(String fieldName,
                       String contentType,
                       boolean isFormField,
                       String fileName,
                       int sizeThreshold,
                       File repository)
Method Detail

getContentType

public String getContentType()
Specified by:
getContentType in interface org.apache.commons.fileupload.FileItem
Overrides:
getContentType in class org.apache.commons.fileupload.disk.DiskFileItem

getEncodedString

public String getEncodedString()

getFileName

public String getFileName()

getFileNameExtension

public String getFileNameExtension()

getFullFileName

public String getFullFileName()

getSizeThreshold

public int getSizeThreshold()

getString

public String getString()
Specified by:
getString in interface org.apache.commons.fileupload.FileItem
Overrides:
getString in class org.apache.commons.fileupload.disk.DiskFileItem

setString

public void setString(String encode)

getTempFile

protected File getTempFile()
Overrides:
getTempFile in class org.apache.commons.fileupload.disk.DiskFileItem

Liferay 6.2-ce-ga5