org.slim3.struts.util
Class UploadUtil

java.lang.Object
  extended by org.slim3.struts.util.UploadUtil

public final class UploadUtil
extends Object

A utility for file upload.

Since:
3.0
Author:
higa

Method Summary
static boolean checkSizeLimit()
          Checks if the uploaded data do not exceed size limit.
static void write(String path, FormFile formFile)
          Writes uploaded data into the file specified by path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkSizeLimit

public static boolean checkSizeLimit()
Checks if the uploaded data do not exceed size limit.

Returns:
whether the uploaded data do not exceed size limit

write

public static void write(String path,
                         FormFile formFile)
Writes uploaded data into the file specified by path.

Parameters:
path - the file path
formFile - uploaded data


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.