org.fcrepo.server.storage.types
Class Datastream

java.lang.Object
  extended by org.fcrepo.server.storage.types.Datastream
Direct Known Subclasses:
DatastreamManagedContent, DatastreamReferencedContent, DatastreamXMLMetadata

public class Datastream
extends Object

A Fedora datastream.

Author:
Sandy Payette

Field Summary
static boolean autoChecksum
           
static String CHECKSUM_IOEXCEPTION
           
static String CHECKSUM_NONE
           
static String CHECKSUMTYPE_DISABLED
           
 String[] DatastreamAltIDs
           
 String DatastreamID
           
static String defaultChecksumType
           
 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 Summary
Datastream()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHECKSUMTYPE_DISABLED

public static final String CHECKSUMTYPE_DISABLED
See Also:
Constant Field Values

CHECKSUM_NONE

public static final String CHECKSUM_NONE
See Also:
Constant Field Values

CHECKSUM_IOEXCEPTION

public static final String CHECKSUM_IOEXCEPTION
See Also:
Constant Field Values

isNew

public boolean isNew

DatastreamID

public String DatastreamID

DatastreamAltIDs

public String[] DatastreamAltIDs

DSFormatURI

public String DSFormatURI

DSMIME

public String DSMIME

DSControlGrp

public String DSControlGrp
Datastream Control Group: This indicates the nature of the repository's control over the datastream content. Values are:

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.


DSInfoType

public String DSInfoType
Used to maintain backwards compatibility with METS-Fedora


DSState

public String DSState

DSVersionable

public boolean DSVersionable

DSVersionID

public String DSVersionID

DSLabel

public String DSLabel

DSCreateDT

public Date DSCreateDT

DSSize

public long DSSize

DSLocation

public String DSLocation

DSLocationType

public String DSLocationType

DSChecksumType

public String DSChecksumType

DSChecksum

public String DSChecksum

autoChecksum

public static boolean autoChecksum

defaultChecksumType

public static String defaultChecksumType
Constructor Detail

Datastream

public Datastream()
Method Detail

getContentStream

public InputStream getContentStream()
                             throws StreamIOException
Throws:
StreamIOException

getContentStream

public InputStream getContentStream(Context context)
                             throws StreamIOException
Throws:
StreamIOException

getContentStreamForChecksum

public InputStream getContentStreamForChecksum()
                                        throws StreamIOException
Throws:
StreamIOException

getDefaultChecksumType

public static String getDefaultChecksumType()

getChecksumType

public String getChecksumType()

getChecksum

public String getChecksum()

setChecksum

public String setChecksum(String csType)

compareChecksum

public boolean compareChecksum()

validateChecksumType

public static String validateChecksumType(String checksumType)
                                   throws GeneralException
Throws:
GeneralException

copy

public Datastream copy()

copy

public void copy(Datastream target)


Copyright © 2011 DuraSpace. All Rights Reserved.