Skip to content

Commit

Permalink
Merge 9ec4285 into 1d2f197
Browse files Browse the repository at this point in the history
  • Loading branch information
krichter722 committed May 21, 2018
2 parents 1d2f197 + 9ec4285 commit 7b0d620
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/main/java/org/apache/commons/fileupload/FileItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,12 @@ public interface FileItem extends FileItemHeadersSupport {
* @param file The <code>File</code> into which the uploaded item should
* be stored.
*
* @throws Exception if an error occurs.
* @throws IOException if an I/O exception occurs
* @throws FileUploadException if an exception which is unrelated to I/O
* occurs
*/
void write(File file) throws Exception;
void write(File file) throws IOException,
FileUploadException;

/**
* Deletes the underlying storage for a file item, including deleting any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,12 @@ public String getString() {
* @param file The <code>File</code> into which the uploaded item should
* be stored.
*
* @throws Exception if an error occurs.
* @throws IOException if an I/O exception occurs
* @throws FileUploadException if an exception which is unrelated to I/O
*/
@Override
public void write(File file) throws Exception {
public void write(File file) throws IOException,
FileUploadException {
if (isInMemory()) {
FileOutputStream fout = null;
try {
Expand Down

0 comments on commit 7b0d620

Please sign in to comment.