org.apache.myfaces.custom.fileupload

Class UploadedFileDefaultImplBase

public abstract class UploadedFileDefaultImplBase extends Object implements UploadedFile

Version: $Revision: 209487 $ $Date: 2005-07-06 19:49:15 +0200 (Wed, 06 Jul 2005) $

Author: Sylvain Vieujot (latest modification by $Author: grantsmith $)

Constructor Summary
protected UploadedFileDefaultImplBase(String name, String contentType)
Method Summary
abstract byte[]getBytes()
Answer the uploaded file contents.
StringgetContentType()
abstract InputStreamgetInputStream()
Answer the uploaded file contents input stream
StringgetName()
abstract longgetSize()
Answer the size of this file.

Constructor Detail

UploadedFileDefaultImplBase

protected UploadedFileDefaultImplBase(String name, String contentType)

Method Detail

getBytes

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

Returns: file contents

getContentType

public String getContentType()

Returns: Returns the _contentType.

getInputStream

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

Returns: InputStream

Throws: IOException

getName

public String getName()

Returns: Returns the _name.

getSize

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

Returns: long