org.apache.myfaces.custom.fileupload

Interface UploadedFile

public interface UploadedFile extends Serializable

Version: $Revision: 209487 $ $Date: 2005-07-06 19:49:15 +0200 (Wed, 06 Jul 2005) $

Author: Manfred Geiler (latest modification by $Author: grantsmith $)

Method Summary
byte[]getBytes()
Answer the uploaded file contents.
StringgetContentType()
InputStreamgetInputStream()
Answer the uploaded file contents input stream
StringgetName()
longgetSize()
Answer the size of this file.

Method Detail

getBytes

public byte[] getBytes()
Answer the uploaded file contents.

Returns: file contents

getContentType

public String getContentType()

Returns: Returns the _contentType.

getInputStream

public InputStream getInputStream()
Answer the uploaded file contents input stream

Returns: InputStream

Throws: IOException

getName

public String getName()

Returns: Returns the _name.

getSize

public long getSize()
Answer the size of this file.

Returns: long