public class FileDescriptor extends AbstractBean
Constructor and Description |
---|
FileDescriptor() |
Modifier and Type | Method and Description |
---|---|
String |
getDataURL() |
String |
getFilename()
If this dataset originated in a filesystem, or is intended to be stored
in a filesystem, what filename is/should be used? If not, will return
null.
|
String |
getMd5sum() |
BigInteger |
getMd5sumAsBigInteger()
Returns the md5sum as a string of length 32.
|
byte[] |
getMd5sumAsBytes() |
String |
getMimeType()
Return the mime type of the artifact.
|
long |
getSize()
Returns the size of the blob, this is -2 if there is no blob associated
or the size has not been computed.
|
void |
setDataURL(String dataURL) |
void |
setFilename(String filename)
If this dataset originated in a filesystem, or is intended to be stored
in a filesystem, what filename is/should be used? If not, set to null.
|
void |
setMd5sum(BigInteger md5sum) |
void |
setMd5sum(byte[] md5sum) |
void |
setMd5sum(String md5sum) |
void |
setMimeType(String mimetype)
Sets the mime type of the artifact
|
void |
setSize(long size)
Sets the size of the blob, this can be set to -2 if there is no blob
associated with this dataset.
|
String |
toString() |
equals, getId, hashCode, isDeleted, setDeleted, setId
public String getMimeType()
public void setMimeType(String mimetype)
mimetype
- sets the mime type of the artifactpublic long getSize()
public void setSize(long size)
size
- the size to setpublic void setFilename(String filename)
filename
- public String getFilename()
public String getDataURL()
public void setDataURL(String dataURL)
dataURL
- the dataURL to setpublic String getMd5sum()
public BigInteger getMd5sumAsBigInteger()
public byte[] getMd5sumAsBytes()
public void setMd5sum(String md5sum)
md5sum
- the md5sum to setpublic void setMd5sum(byte[] md5sum)
md5sum
- the md5sum to setpublic void setMd5sum(BigInteger md5sum)
md5sum
- the md5sum to setCopyright © 2020. All rights reserved.