org.richfaces.photoalbum.util
Class FileHandler
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileHandler
public FileHandler(File file)
FileHandler
public FileHandler(org.richfaces.model.UploadedFile uFile)
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
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.