public class TemporaryFileItem extends MagicMimeTypeFileItem
MagicMimeTypeFileItem
that tries to close all opening stream before deletion. It fixes errors in deleting
temporary files on Windows.Constructor and Description |
---|
TemporaryFileItem(org.apache.wicket.util.upload.FileItem delegate) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
get, getContentType, getFieldName, getName, getSize, getString, getString, isFormField, isInMemory, setFieldName, setFormField, write
public TemporaryFileItem(org.apache.wicket.util.upload.FileItem delegate)
public void delete()
delete
in interface org.apache.wicket.util.upload.FileItem
delete
in class MagicMimeTypeFileItem
public InputStream getInputStream() throws IOException
getInputStream
in interface org.apache.wicket.util.upload.FileItem
getInputStream
in class MagicMimeTypeFileItem
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface org.apache.wicket.util.upload.FileItem
getOutputStream
in class MagicMimeTypeFileItem
IOException
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.