org.apache.myfaces.custom.fileupload
Class UploadedFileDefaultImplBase
java.lang.Object
   org.apache.myfaces.custom.fileupload.UploadedFileDefaultImplBase
org.apache.myfaces.custom.fileupload.UploadedFileDefaultImplBase
- All Implemented Interfaces: 
- Serializable, UploadedFile
- Direct Known Subclasses: 
- UploadedFileDefaultFileImpl, UploadedFileDefaultMemoryImpl
- public abstract class UploadedFileDefaultImplBase 
- extends Object- implements UploadedFile
- Version:
- $Revision: 472638 $ $Date: 2006-11-08 15:54:13 -0500 (Wed, 08 Nov 2006) $
- Author:
- Sylvain Vieujot (latest modification by $Author: grantsmith $)
- See Also:
- Serialized Form
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
UploadedFileDefaultImplBase
protected UploadedFileDefaultImplBase(String name,
                                      String contentType)
getBytes
public abstract byte[] getBytes()
                         throws IOException
- Answer the uploaded file contents.
 
- 
- Specified by:
- getBytesin interface- UploadedFile
 
- 
- Returns:
- file contents
- Throws:
- IOException
 
getInputStream
public abstract InputStream getInputStream()
                                    throws IOException
- Answer the uploaded file contents input stream
 
- 
- Specified by:
- getInputStreamin interface- UploadedFile
 
- 
- Returns:
- InputStream
- Throws:
- IOException
 
getContentType
public String getContentType()
- 
- Specified by:
- getContentTypein interface- UploadedFile
 
- 
- Returns:
- Returns the _contentType.
 
getName
public String getName()
- 
- Specified by:
- getNamein interface- UploadedFile
 
- 
- Returns:
- Returns the _name.
 
getSize
public abstract long getSize()
- Answer the size of this file.
 
- 
- Specified by:
- getSizein interface- UploadedFile
 
- 
- Returns:
- long
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.