com.liferay.faces.util.model
Class UploadedFileWrapper

java.lang.Object
  extended by com.liferay.faces.util.model.UploadedFileWrapper
All Implemented Interfaces:
UploadedFile, javax.faces.FacesWrapper<UploadedFile>

public abstract class UploadedFileWrapper
extends Object
implements UploadedFile, javax.faces.FacesWrapper<UploadedFile>

Author:
Neil Griffin

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.liferay.faces.util.model.UploadedFile
UploadedFile.Status
 
Constructor Summary
UploadedFileWrapper()
           
 
Method Summary
 void delete()
           
 String getAbsolutePath()
           
 Map<String,Object> getAttributes()
           
 byte[] getBytes()
           
 String getCharSet()
           
 String getContentType()
           
 String getHeader(String name)
           
 Collection<String> getHeaderNames()
           
 Collection<String> getHeaders(String name)
           
 String getId()
           
 InputStream getInputStream()
           
 String getMessage()
           
 String getName()
           
 long getSize()
           
 UploadedFile.Status getStatus()
           
abstract  UploadedFile getWrapped()
           
 void write(String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadedFileWrapper

public UploadedFileWrapper()
Method Detail

delete

public void delete()
            throws IOException
Specified by:
delete in interface UploadedFile
Throws:
IOException

write

public void write(String fileName)
           throws IOException
Specified by:
write in interface UploadedFile
Throws:
IOException

getAbsolutePath

public String getAbsolutePath()
Specified by:
getAbsolutePath in interface UploadedFile

getAttributes

public Map<String,Object> getAttributes()
Specified by:
getAttributes in interface UploadedFile

getBytes

public byte[] getBytes()
                throws IOException
Specified by:
getBytes in interface UploadedFile
Throws:
IOException

getCharSet

public String getCharSet()
Specified by:
getCharSet in interface UploadedFile

getContentType

public String getContentType()
Specified by:
getContentType in interface UploadedFile

getHeader

public String getHeader(String name)
Specified by:
getHeader in interface UploadedFile

getHeaderNames

public Collection<String> getHeaderNames()
Specified by:
getHeaderNames in interface UploadedFile

getHeaders

public Collection<String> getHeaders(String name)
Specified by:
getHeaders in interface UploadedFile

getId

public String getId()
Specified by:
getId in interface UploadedFile

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface UploadedFile
Throws:
IOException

getMessage

public String getMessage()
Specified by:
getMessage in interface UploadedFile

getName

public String getName()
Specified by:
getName in interface UploadedFile

getSize

public long getSize()
Specified by:
getSize in interface UploadedFile

getStatus

public UploadedFile.Status getStatus()
Specified by:
getStatus in interface UploadedFile

getWrapped

public abstract UploadedFile getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<UploadedFile>


Copyright © 2015 Liferay, Inc.. All rights reserved.