org.apache.myfaces.custom.fileupload

Class UploadedFileDefaultFileImpl

public class UploadedFileDefaultFileImpl 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
UploadedFileDefaultFileImpl(FileItem fileItem)
Method Summary
byte[]getBytes()
Answer the uploaded file contents.
InputStreamgetInputStream()
Answer the uploaded file contents input stream
longgetSize()
Answer the size of this file.

Constructor Detail

UploadedFileDefaultFileImpl

public UploadedFileDefaultFileImpl(FileItem fileItem)

Method Detail

getBytes

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

Returns: file contents

getInputStream

public InputStream getInputStream()
Answer the uploaded file contents input stream

Returns: InputStream

Throws: IOException

getSize

public long getSize()
Answer the size of this file.

Returns: long