org.fcrepo.server.storage.types
Class DatastreamManagedContent

java.lang.Object
  extended by org.fcrepo.server.storage.types.Datastream
      extended by org.fcrepo.server.storage.types.DatastreamManagedContent

public class DatastreamManagedContent
extends Datastream

Version:
$Id$
Author:
Chris Wilper

Field Summary
static String COPY_SCHEME
          Internal scheme to indicating that a copy should made of the resource.
 int DSMDClass
           
static String TEMP_SCHEME
           
static String UPLOADED_SCHEME
           
 
Fields inherited from class org.fcrepo.server.storage.types.Datastream
autoChecksum, CHECKSUM_IOEXCEPTION, CHECKSUM_NONE, CHECKSUMTYPE_DISABLED, DatastreamAltIDs, DatastreamID, defaultChecksumType, DS_LOCATION_TYPE_INTERNAL, DS_LOCATION_TYPE_URL, DSChecksum, DSChecksumType, DSControlGrp, DSCreateDT, DSFormatURI, DSInfoType, DSLabel, DSLocation, DSLocationType, DSMIME, DSSize, DSState, DSVersionable, DSVersionID, isNew
 
Constructor Summary
DatastreamManagedContent()
           
 
Method Summary
 Datastream copy()
           
 InputStream getContentStream(Context ctx)
           
 void putContentStream(MIMETypedStream stream)
          Set the contents of this managed datastream by storing as a temp file.
 
Methods inherited from class org.fcrepo.server.storage.types.Datastream
compareChecksum, copy, getChecksum, getChecksumType, getContentStream, getContentStreamForChecksum, getDefaultChecksumType, setChecksum, validateChecksumType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPY_SCHEME

public static final String COPY_SCHEME
Internal scheme to indicating that a copy should made of the resource.

See Also:
Constant Field Values

TEMP_SCHEME

public static final String TEMP_SCHEME
See Also:
Constant Field Values

UPLOADED_SCHEME

public static final String UPLOADED_SCHEME
See Also:
Constant Field Values

DSMDClass

public int DSMDClass
Constructor Detail

DatastreamManagedContent

public DatastreamManagedContent()
Method Detail

copy

public Datastream copy()
Overrides:
copy in class Datastream

getContentStream

public InputStream getContentStream(Context ctx)
                             throws StreamIOException
Overrides:
getContentStream in class Datastream
Throws:
StreamIOException

putContentStream

public void putContentStream(MIMETypedStream stream)
                      throws StreamIOException
Set the contents of this managed datastream by storing as a temp file. If the previous content was stored in a temp file, clean up this file.

Parameters:
stream - - the data to store in this datastream
Throws:
StreamIOException


Copyright © 2012 DuraSpace. All Rights Reserved.