Class TemporaryFileItem
- java.lang.Object
-
- org.hippoecm.frontend.plugins.yui.upload.MagicMimeTypeFileItem
-
- org.hippoecm.frontend.plugins.jquery.upload.TemporaryFileItem
-
- All Implemented Interfaces:
org.apache.commons.fileupload.FileItem
,org.apache.commons.fileupload.FileItemHeadersSupport
public class TemporaryFileItem extends MagicMimeTypeFileItem
Extension of theMagicMimeTypeFileItem
that tries to close all opening stream before deletion. It fixes errors in deleting temporary files on Windows.
-
-
Constructor Summary
Constructors Constructor Description TemporaryFileItem(org.apache.commons.fileupload.FileItem delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
InputStream
getInputStream()
OutputStream
getOutputStream()
-
Methods inherited from class org.hippoecm.frontend.plugins.yui.upload.MagicMimeTypeFileItem
get, getBrowserProvidedContentType, getContentType, getFieldName, getHeaders, getName, getSize, getString, getString, isFormField, isInMemory, setFieldName, setFormField, setHeaders, write
-
-
-
-
Method Detail
-
delete
public void delete()
- Specified by:
delete
in interfaceorg.apache.commons.fileupload.FileItem
- Overrides:
delete
in classMagicMimeTypeFileItem
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in interfaceorg.apache.commons.fileupload.FileItem
- Overrides:
getInputStream
in classMagicMimeTypeFileItem
- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStream
in interfaceorg.apache.commons.fileupload.FileItem
- Overrides:
getOutputStream
in classMagicMimeTypeFileItem
- Throws:
IOException
-
-