RichFaces Photoalbum 4.3.5.Final

org.richfaces.photoalbum.util
Class FileHandler

java.lang.Object
  extended by org.richfaces.photoalbum.util.FileHandler

public class FileHandler
extends Object

A wrapper class for handling two different classes: RichFaces' UploadedFile and java.io.File UploadedFile is created from a local file when using rich:fileUploader File is created from a remote file when downloading a file from an URL

Author:
mpetrov

Constructor Summary
FileHandler(File file)
           
FileHandler(org.richfaces.model.UploadedFile uFile)
           
 
Method Summary
 void delete()
           
 InputStream getInputStream()
           
 String getName()
           
 long getSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHandler

public FileHandler(File file)

FileHandler

public FileHandler(org.richfaces.model.UploadedFile uFile)
Method Detail

getInputStream

public InputStream getInputStream()
                           throws FileNotFoundException,
                                  IOException
Throws:
FileNotFoundException
IOException

getName

public String getName()

getSize

public long getSize()

delete

public void delete()
            throws Exception
Throws:
Exception

RichFaces Photoalbum 4.3.5.Final

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.