org.apache.myfaces.custom.fileupload

Interface UploadedFile

All Superinterfaces:
Serializable
Known Implementing Classes:
UploadedFileDefaultFileImpl, UploadedFileDefaultImplBase, UploadedFileDefaultMemoryImpl

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.
String
getContentType()
InputStream
getInputStream()
Answer the uploaded file contents input stream
String
getName()
long
getSize()
Answer the size of this file.

Method Details

getBytes

public byte[] getBytes()
            throws IOException
Answer the uploaded file contents.
Returns:
file contents

getContentType

public String getContentType()
Returns:
Returns the _contentType.

getInputStream

public InputStream getInputStream()
            throws IOException
Answer the uploaded file contents input stream
Returns:
InputStream

getName

public String getName()
Returns:
Returns the _name.

getSize

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