gov.nih.nci.caarray.ui.core
Interface CustomFormFile

All Superinterfaces:
org.apache.struts.upload.FormFile
All Known Implementing Classes:
CustomCommonsFormFile

public interface CustomFormFile
extends org.apache.struts.upload.FormFile

Author:
smatyas

Method Summary
 void write(java.io.File file)
          A convenience method to write an uploaded item to disk.
 
Methods inherited from interface org.apache.struts.upload.FormFile
destroy, getContentType, getFileData, getFileName, getFileSize, getInputStream, setContentType, setFileName, setFileSize
 

Method Detail

write

void write(java.io.File file)
           throws java.lang.Exception
A convenience method to write an uploaded item to disk. The client code is not concerned with whether or not the item is stored in memory, or on disk in a temporary location. They just want to write the uploaded item to a file.

This method is not guaranteed to succeed if called more than once for the same item. This allows a particular implementation to use, for example, file renaming, where possible, rather than copying all of the underlying data, thus gaining a significant performance benefit.

Parameters:
file - The File into which the uploaded item should be stored.
Throws:
java.lang.Exception - if an error occurs.