org.jbehave.web.runner.wicket.pages
Class DataFiles.UploadFileItem
java.lang.Object
org.jbehave.web.runner.wicket.pages.DataFiles.UploadFileItem
- All Implemented Interfaces:
- java.io.Serializable, org.apache.commons.fileupload.FileItem
- Enclosing class:
- DataFiles
public static class DataFiles.UploadFileItem
- extends java.lang.Object
- implements org.apache.commons.fileupload.FileItem
Facade around Wicket's FileUpload backported to more web framework-neutral
Commons FileUpload FileIem, which for some unclear reason was forked to Wicket.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataFiles.UploadFileItem
public DataFiles.UploadFileItem(org.apache.wicket.markup.html.form.upload.FileUpload upload)
delete
public void delete()
- Specified by:
delete in interface org.apache.commons.fileupload.FileItem
get
public byte[] get()
- Specified by:
get in interface org.apache.commons.fileupload.FileItem
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType in interface org.apache.commons.fileupload.FileItem
getFieldName
public java.lang.String getFieldName()
- Specified by:
getFieldName in interface org.apache.commons.fileupload.FileItem
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream in interface org.apache.commons.fileupload.FileItem
- Throws:
java.io.IOException
getName
public java.lang.String getName()
- Specified by:
getName in interface org.apache.commons.fileupload.FileItem
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Specified by:
getOutputStream in interface org.apache.commons.fileupload.FileItem
- Throws:
java.io.IOException
getSize
public long getSize()
- Specified by:
getSize in interface org.apache.commons.fileupload.FileItem
getString
public java.lang.String getString()
- Specified by:
getString in interface org.apache.commons.fileupload.FileItem
getString
public java.lang.String getString(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
- Specified by:
getString in interface org.apache.commons.fileupload.FileItem
- Throws:
java.io.UnsupportedEncodingException
isFormField
public boolean isFormField()
- Specified by:
isFormField in interface org.apache.commons.fileupload.FileItem
isInMemory
public boolean isInMemory()
- Specified by:
isInMemory in interface org.apache.commons.fileupload.FileItem
setFieldName
public void setFieldName(java.lang.String name)
- Specified by:
setFieldName in interface org.apache.commons.fileupload.FileItem
setFormField
public void setFormField(boolean state)
- Specified by:
setFormField in interface org.apache.commons.fileupload.FileItem
write
public void write(java.io.File file)
throws java.lang.Exception
- Specified by:
write in interface org.apache.commons.fileupload.FileItem
- Throws:
java.lang.Exception
Copyright © 2011. All Rights Reserved.