org.apache.myfaces.custom.fileupload
Interface UploadedFile

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
UploadedFileDefaultFileImpl, UploadedFileDefaultImplBase, UploadedFileDefaultMemoryImpl

public interface UploadedFile
extends java.io.Serializable

Version:
$Revision: 472638 $ $Date: 2006-11-08 21:54:13 +0100 (Mi, 08 Nov 2006) $
Author:
Manfred Geiler (latest modification by $Author: grantsmith $)

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

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

Returns:
file contents
Throws:
java.io.IOException

getInputStream

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

Returns:
InputStream
Throws:
java.io.IOException

getContentType

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

getName

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

getSize

long getSize()
Answer the size of this file.

Returns:
long


Copyright © 2010. All Rights Reserved.