org.apache.myfaces.custom.fileupload

Class UploadedFileDefaultMemoryImpl

Implemented Interfaces:
Serializable, UploadedFile

public class UploadedFileDefaultMemoryImpl
extends UploadedFileDefaultImplBase

Version:
$Revision: 225368 $ $Date: 2005-07-26 20:14:51 +0200 (Tue, 26 Jul 2005) $
Author:
Sylvain Vieujot (latest modification by $Author: bdudney $)

Constructor Summary

UploadedFileDefaultMemoryImpl(FileItem fileItem)

Method Summary

byte[]
getBytes()
Answer the uploaded file contents.
InputStream
getInputStream()
Answer the uploaded file contents input stream
long
getSize()
Answer the size of this file.

Methods inherited from class org.apache.myfaces.custom.fileupload.UploadedFileDefaultImplBase

getBytes, getContentType, getInputStream, getName, getSize

Constructor Details

UploadedFileDefaultMemoryImpl

public UploadedFileDefaultMemoryImpl(FileItem fileItem)
            throws IOException

Method Details

getBytes

public byte[] getBytes()
Answer the uploaded file contents.
Specified by:
getBytes in interface UploadedFile
Overrides:
getBytes in interface UploadedFileDefaultImplBase
Returns:
file contents

getInputStream

public InputStream getInputStream()
            throws IOException
Answer the uploaded file contents input stream
Specified by:
getInputStream in interface UploadedFile
Overrides:
getInputStream in interface UploadedFileDefaultImplBase
Returns:
InputStream

getSize

public long getSize()
Answer the size of this file.
Specified by:
getSize in interface UploadedFile
Overrides:
getSize in interface UploadedFileDefaultImplBase
Returns:
long