当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
UploadedFileImpl - JBOSS Portal 2.4 API 英文版文档
org.jboss.portlet.forums.impl
Class UploadedFileImpl
java.lang.Object
org.jboss.portlet.forums.impl.UploadedFileImpl
- All Implemented Interfaces:
- java.io.Serializable, UploadedFile
- public class UploadedFileImpl
- extends java.lang.Object
- implements UploadedFile, java.io.Serializable
An uploaded file.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UploadedFileImpl
public UploadedFileImpl(java.lang.String contentType,
byte[] content,
java.lang.String name,
long size)
- Parameters:
contentType
- the file content typecontent
- the file chunk of bytesname
- the file namesize
- the size of the file
UploadedFileImpl
public UploadedFileImpl()
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interface UploadedFile
setContentType
public void setContentType(java.lang.String type)
- Specified by:
setContentType
in interface UploadedFile
getSize
public long getSize()
- Specified by:
getSize
in interface UploadedFile
setSize
public void setSize(long size)
- Specified by:
setSize
in interface UploadedFile
getName
public java.lang.String getName()
- Specified by:
getName
in interface UploadedFile
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface UploadedFile
getByteContent
public byte[] getByteContent()
- Specified by:
getByteContent
in interface UploadedFile
setByteContent
public void setByteContent(byte[] byteContent)
- Specified by:
setByteContent
in interface UploadedFile
getContent
public java.sql.Blob getContent()
- Specified by:
getContent
in interface UploadedFile
setContent
public void setContent(java.sql.Blob content)
- Specified by:
setContent
in interface UploadedFile