站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

UploadedFileImpl - JBOSS Portal 2.4 API 英文版文档


org.jboss.portlet.forums.impl
Class UploadedFileImpl

java.lang.Object
  extended byorg.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

Constructor Summary
UploadedFileImpl()
           
UploadedFileImpl(java.lang.String contentType, byte[] content, java.lang.String name, long size)
           
 
Method Summary
 byte[] getByteContent()
           
 java.sql.Blob getContent()
           
 java.lang.String getContentType()
           
 java.lang.String getName()
           
 long getSize()
           
 void setByteContent(byte[] byteContent)
           
 void setContent(java.sql.Blob content)
           
 void setContentType(java.lang.String type)
           
 void setName(java.lang.String name)
           
 void setSize(long size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadedFileImpl

public UploadedFileImpl(java.lang.String contentType,
                        byte[] content,
                        java.lang.String name,
                        long size)
Parameters:
contentType - the file content type
content - the file chunk of bytes
name - the file name
size - the size of the file

UploadedFileImpl

public UploadedFileImpl()
Method Detail

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