org.apache.myfaces.custom.fileupload
Interface UploadedFile

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

public interface UploadedFile
extends Serializable

Version:
$Revision: 599022 $ $Date: 2007-11-28 10:14:17 -0500 (Wed, 28 Nov 2007) $
Author:
Manfred Geiler (latest modification by $Author: mmarinschek $)

Method Summary
 byte[] getBytes()
          Answer the uploaded file contents.
 String getContentType()
           
 InputStream getInputStream()
          Answer the uploaded file contents input stream
 String getName()
           
 long getSize()
          Returns the size of this file.
 StorageStrategy getStorageStrategy()
          Allows to get more information/interact more with the file, depending on where it is stored
 

Method Detail

getBytes

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

Returns:
file contents
Throws:
IOException

getInputStream

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

Returns:
InputStream
Throws:
IOException

getContentType

String getContentType()
Returns:
Returns the contentType.

getName

String getName()
Returns:
Returns the name.

getSize

long getSize()
Returns the size of this file.

Returns:
long

getStorageStrategy

StorageStrategy getStorageStrategy()
Allows to get more information/interact more with the file, depending on where it is stored

Returns:
StorageStrategy the storage strategy of this file,


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.