com.liferay.faces.bridge.model
Class UploadedFileImpl
java.lang.Object
com.liferay.faces.bridge.model.UploadedFileImpl
- All Implemented Interfaces:
- UploadedFile, Serializable
- Direct Known Subclasses:
- UploadedFileErrorImpl
public class UploadedFileImpl
- extends Object
- implements Serializable, UploadedFile
- Author:
- Neil Griffin
- See Also:
- Serialized Form
|
Constructor Summary |
UploadedFileImpl(String absolutePath,
Map<String,Object> attributeMap,
String charSet,
String contentType,
Map<String,List<String>> headersMap,
String id,
String message,
String name,
long size,
UploadedFile.Status status)
|
UploadedFileImpl
public UploadedFileImpl(String absolutePath,
Map<String,Object> attributeMap,
String charSet,
String contentType,
Map<String,List<String>> headersMap,
String id,
String message,
String name,
long size,
UploadedFile.Status status)
delete
public void delete()
throws IOException
- Specified by:
delete in interface UploadedFile
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
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
Copyright © 2014 Liferay, Inc.. All Rights Reserved.