public class FileAttachment extends Object
| Constructor and Description |
|---|
FileAttachment() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 namepublic InputStream getInputStream() throws Exception
Exception - if Repository or value format occur exceptionpublic void setInputStream(InputStream in) throws Exception
in - the new input streamException - the exceptionpublic String getNodeName()
public void setNodeName(String nodeName)
nodeName - Copyright © 2003–2019 eXo Platform SAS. All rights reserved.