public class Attachment extends Object
Constructor and Description |
---|
Attachment() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getContents()
Gets the actual contents of this Attachment.
|
Date |
getCreatedDate()
Returns the Date that should be stored in Livelink as the creation date
|
String |
getFileName()
Returns the underlying filename that will be stored in Livelink.
|
long |
getFileSize()
Returns the size of the file.
|
Date |
getModifiedDate()
Returns the Date that should be stored in Livelink as the modified data
|
void |
setContents(byte[] contents)
Sets the actual contents of this Attachment.
|
void |
setCreatedDate(Date createdDate)
Sets the Date that should be stored in Livelink as the creation date
|
void |
setFileName(String fileName)
Sets the underlying filename that will be stored in Livelink.
|
void |
setFileSize(long fileSize)
Sets the size of the file.
|
void |
setModifiedDate(Date modifiedDate)
Sets the Date that should be stored in Livelink as the modified data
|
public String getFileName()
public void setFileName(String fileName)
public Date getCreatedDate()
public void setCreatedDate(Date createdDate)
public Date getModifiedDate()
public void setModifiedDate(Date modifiedDate)
public long getFileSize()
public void setFileSize(long fileSize)
public byte[] getContents()
ContentService
for methods that
allow you to stream the content for uploads and downloads.public void setContents(byte[] contents)
ContentService
for methods that
allow you to stream the content for uploads and downloads.© Copyright 2017 OpenText Corp. All Rights Reserved.