org.apache.myfaces.custom.fileupload
Class UploadedFileDefaultMemoryImpl
java.lang.Object
   org.apache.myfaces.custom.fileupload.UploadedFileDefaultImplBase
org.apache.myfaces.custom.fileupload.UploadedFileDefaultImplBase
       org.apache.myfaces.custom.fileupload.UploadedFileDefaultMemoryImpl
org.apache.myfaces.custom.fileupload.UploadedFileDefaultMemoryImpl
- All Implemented Interfaces: 
- Serializable, UploadedFile
- public class UploadedFileDefaultMemoryImpl 
- extends UploadedFileDefaultImplBase
- Version:
- $Revision: 782291 $ $Date: 2009-06-06 13:03:52 -0500 (Sat, 06 Jun 2009) $
- Author:
- Sylvain Vieujot (latest modification by $Author: lu4242 $)
- See Also:
- Serialized Form
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
UploadedFileDefaultMemoryImpl
public UploadedFileDefaultMemoryImpl(org.apache.commons.fileupload.FileItem fileItem)
                              throws IOException
- Throws:
- IOException
getBytes
public byte[] getBytes()
- Answer the uploaded file contents.
 
- 
- Specified by:
- getBytesin interface- UploadedFile
- Specified by:
- getBytesin class- UploadedFileDefaultImplBase
 
- 
- Returns:
- file contents
 
getInputStream
public InputStream getInputStream()
                           throws IOException
- Answer the uploaded file contents input stream
 
- 
- Specified by:
- getInputStreamin interface- UploadedFile
- Specified by:
- getInputStreamin class- UploadedFileDefaultImplBase
 
- 
- Returns:
- InputStream
- Throws:
- IOException
 
getSize
public long getSize()
- Answer the size of this file.
 
- 
- Specified by:
- getSizein interface- UploadedFile
- Specified by:
- getSizein class- UploadedFileDefaultImplBase
 
- 
- Returns:
- long
 
getStorageStrategy
public StorageStrategy getStorageStrategy()
- Description copied from interface: UploadedFile
- 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.