|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.faq.service.FileAttachment
public class FileAttachment
| Constructor Summary | |
|---|---|
FileAttachment()
|
|
| Method Summary | |
|---|---|
String |
getId()
Gets the file's id, each file have an unique id. |
InputStream |
getInputStream()
Gets the input stream which is file's data. |
String |
getMimeType()
Gets the mime type. |
String |
getName()
Gets the name of file attach. |
String |
getNodeName()
Get the name of Node file |
String |
getPath()
Gets the path of file, this path is used to view or down load file. |
long |
getSize()
Gets the size of file. |
String |
getWorkspace()
Gets the workspace. |
void |
setId(String s)
Sets the id for this file, setting the id for this file is done auto by system. |
void |
setInputStream(InputStream in)
Sets the input stream which is file's data. |
void |
setMimeType(String mimeType_)
Sets the mime type. |
void |
setName(String name_)
Sets the name of file for fileAttachment object when upload or get data. |
void |
setNodeName(String nodeName)
Registers name for node which is used to store file attachment |
void |
setPath(String p)
Sets the path which is the path in server. |
void |
setSize(long size_)
Sets the size for file is uploaded, setting size for file is done auto by sytem. |
void |
setWorkspace(String ws)
Sets the workspace. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileAttachment()
| Method Detail |
|---|
public String getId()
public void setId(String s)
s - the new idpublic String getPath()
public void setPath(String p)
p - the new pathpublic String getWorkspace()
public void setWorkspace(String ws)
ws - the new workspacepublic String getMimeType()
public void setMimeType(String mimeType_)
mimeType_ - the new mime typepublic long getSize()
public void setSize(long size_)
size_ - the new sizepublic String getName()
public void setName(String name_)
name_ - the new name
public InputStream getInputStream()
throws Exception
Exception - if Repository or value format occur exception
public void setInputStream(InputStream in)
throws Exception
in - the new input stream
Exception - the exceptionpublic String getNodeName()
public void setNodeName(String nodeName)
nodeName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||