org.mentawai.core
Class FileUpload

java.lang.Object
  extended by org.mentawai.core.FileUpload

public class FileUpload
extends Object

A simple wrapper for a FileItem commons upload.

Author:
Sergio Oliveira Jr.

Constructor Summary
FileUpload(org.apache.commons.fileupload.FileItem fileItem)
           
 
Method Summary
 String asString()
           
 String asString(String encoding)
           
 void deleteTempFile()
           
 String getContentType()
           
 String getFieldName()
           
 org.apache.commons.fileupload.FileItem getFileItem()
           
 InputStream getInpuStream()
           
 String getOriginalFilename()
           
 long getSize()
           
 boolean isInMemory()
           
 byte[] toByteArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUpload

public FileUpload(org.apache.commons.fileupload.FileItem fileItem)
Method Detail

deleteTempFile

public void deleteTempFile()

toByteArray

public byte[] toByteArray()

getContentType

public String getContentType()

getFieldName

public String getFieldName()

getOriginalFilename

public String getOriginalFilename()

getSize

public long getSize()

asString

public String asString()

asString

public String asString(String encoding)

isInMemory

public boolean isInMemory()

getInpuStream

public InputStream getInpuStream()
                          throws IOException
Throws:
IOException

getFileItem

public org.apache.commons.fileupload.FileItem getFileItem()


Copyright © 2013. All Rights Reserved.