public class Datastream extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
autoChecksum |
static String |
CHECKSUM_IOEXCEPTION |
static String |
CHECKSUM_NONE |
static String |
CHECKSUMTYPE_DISABLED |
String[] |
DatastreamAltIDs |
String |
DatastreamID |
static String |
defaultChecksumType |
static String |
DS_LOCATION_TYPE_INTERNAL |
static String |
DS_LOCATION_TYPE_URL |
String |
DSChecksum |
String |
DSChecksumType |
String |
DSControlGrp
Datastream Control Group: This indicates the nature of the repository's
control over the datastream content.
|
Date |
DSCreateDT |
String |
DSFormatURI |
String |
DSInfoType
Used to maintain backwards compatibility with METS-Fedora
|
String |
DSLabel |
String |
DSLocation |
String |
DSLocationType |
String |
DSMIME |
long |
DSSize |
String |
DSState |
boolean |
DSVersionable |
String |
DSVersionID |
boolean |
isNew |
| Constructor and Description |
|---|
Datastream() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compareChecksum() |
Datastream |
copy() |
void |
copy(Datastream target) |
String |
getChecksum() |
String |
getChecksumType() |
InputStream |
getContentStream() |
InputStream |
getContentStream(Context context) |
InputStream |
getContentStreamForChecksum() |
static String |
getDefaultChecksumType() |
String |
setChecksum(String csType) |
static String |
validateChecksumType(String checksumType) |
public static final String CHECKSUMTYPE_DISABLED
public static final String CHECKSUM_NONE
public static final String CHECKSUM_IOEXCEPTION
public static final String DS_LOCATION_TYPE_INTERNAL
public static final String DS_LOCATION_TYPE_URL
public boolean isNew
public String DatastreamID
public String[] DatastreamAltIDs
public String DSFormatURI
public String DSMIME
public String DSControlGrp
R = Redirected. The datastream resides on an external server and is referenced by a URL. When a dissemination request for the *datastream* comes through, Fedora sends an HTTP redirect to the client, thereby causing the client to directly access the datastream from its external location. This is useful in cases where the datastream is really some sort of streaming media that cannot be piped through Fedora, or the datastream is an HTML document with relative hyperlinks to the server on which is is normally hosted. E = External Referenced. The datastream content is external to the repository and referenced by URL. The content is not under the direct custodianship of the repository. The URL is considered public so the repository does not worry about whether it exposes the datastream location to collaborating services. M = Managed Content. The datastream content is stored and managed by the repository. The content is considered under the direct custodianship of the repository. The repository does not expose the underlying storage location to collaborating services and it mediates all access to the content by collaborating services. X = Inline XML Metadata. The datastream content is user-defined XML metadata that is stored within the digital object XML file itself. As such, it is intrinsically bound to the digital object, and by implication, it is stored and managed by the repository. The content considered under the custodianship of the repository.
public String DSInfoType
public String DSState
public boolean DSVersionable
public String DSVersionID
public String DSLabel
public Date DSCreateDT
public long DSSize
public String DSLocation
public String DSLocationType
public String DSChecksumType
public String DSChecksum
public static boolean autoChecksum
public static String defaultChecksumType
public InputStream getContentStream() throws StreamIOException
StreamIOExceptionpublic InputStream getContentStream(Context context) throws StreamIOException
StreamIOExceptionpublic InputStream getContentStreamForChecksum() throws StreamIOException
StreamIOExceptionpublic static String getDefaultChecksumType()
public String getChecksumType()
public String getChecksum()
public boolean compareChecksum()
public static String validateChecksumType(String checksumType) throws GeneralException
GeneralExceptionpublic Datastream copy()
public void copy(Datastream target)
Copyright © 2013 DuraSpace. All Rights Reserved.