public class FedoraContent extends Object
FedoraContent ds = new FedoraContent().setContent(in).setFilename(filename);| Constructor and Description |
|---|
FedoraContent()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
URI |
getChecksum()
Get the SHA-1 checksum of the content as a URI (e.g.,
"
urn:sha1:290fa4c6a6161c0941fcaa915e2f96aecc85cd9f"). |
InputStream |
getContent()
Get the content stream.
|
String |
getContentType()
Get the content type (MIME type) of the content.
|
String |
getFilename()
Get the original filename of the content source file.
|
FedoraContent |
setChecksum(URI checksum)
Set the checksum of the content as a URI (e.g.,
"
urn:sha1:290fa4c6a6161c0941fcaa915e2f96aecc85cd9f"). |
FedoraContent |
setContent(InputStream content)
Set the content stream.
|
FedoraContent |
setContentType(String contentType)
Set the content type (MIME type) of the content.
|
FedoraContent |
setFilename(String filename)
Set the filename of the content source file.
|
public InputStream getContent()
public String getContentType()
public String getFilename()
public URI getChecksum()
urn:sha1:290fa4c6a6161c0941fcaa915e2f96aecc85cd9f").public FedoraContent setContent(InputStream content)
public FedoraContent setContentType(String contentType)
public FedoraContent setFilename(String filename)
public FedoraContent setChecksum(URI checksum)
urn:sha1:290fa4c6a6161c0941fcaa915e2f96aecc85cd9f").Copyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.