org.apache.myfaces.custom.fileupload
Interface UploadedFile

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
UploadedFileDefaultImplBase

public interface UploadedFile
extends java.io.Serializable

Version:
$Revision: 1.7 $ $Date: 2004/10/13 11:50:57 $ $Log: UploadedFile.java,v $ Revision 1.7 2004/10/13 11:50:57 matze renamed packages to org.apache Revision 1.6 2004/07/12 03:04:32 svieujot Make Serializable to be able to save it in the FacesContext Revision 1.5 2004/07/01 21:53:05 mwessendorf ASF switch Revision 1.4 2004/05/24 22:48:10 svieujot Making UploadedFile an interface, and adjusting the renderer. Revision 1.3 2004/05/10 22:17:24 o_rossmueller max file size configurable by filter init parameter 'maxFileSize' removed default creation of file contents byte array
Author:
Manfred Geiler (latest modification by $Author: matze $)

Method Summary
 byte[] getBytes()
          Answer the uploaded file contents.
 java.lang.String getContentType()
           
 java.io.InputStream getInputStream()
          Answer the uploaded file contents input stream
 java.lang.String getName()
           
 long getSize()
          Answer the size of this file.
 

Method Detail

getBytes

public byte[] getBytes()
                throws java.io.IOException
Answer the uploaded file contents.

Returns:
file contents
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Answer the uploaded file contents input stream

Returns:
Throws:
java.io.IOException

getContentType

public java.lang.String getContentType()
Returns:
Returns the _contentType.

getName

public java.lang.String getName()
Returns:
Returns the _name.

getSize

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

Returns: