|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.storage.types.Datastream
org.fcrepo.server.storage.types.DatastreamReferencedContent
public class DatastreamReferencedContent
Referenced Content.
| Field Summary |
|---|
| Fields inherited from class org.fcrepo.server.storage.types.Datastream |
|---|
autoChecksum, CHECKSUM_IOEXCEPTION, CHECKSUM_NONE, CHECKSUMTYPE_DISABLED, DatastreamAltIDs, DatastreamID, defaultChecksumType, DSChecksum, DSChecksumType, DSControlGrp, DSCreateDT, DSFormatURI, DSInfoType, DSLabel, DSLocation, DSLocationType, DSMIME, DSSize, DSState, DSVersionable, DSVersionID, isNew |
| Constructor Summary | |
|---|---|
DatastreamReferencedContent()
|
|
| Method Summary | |
|---|---|
Datastream |
copy()
|
long |
getContentLength(MIMETypedStream stream)
Returns the length of the content of this stream. |
InputStream |
getContentStream(Context context)
Gets an InputStream to the content of this externally-referenced datastream. |
| 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 |
| Constructor Detail |
|---|
public DatastreamReferencedContent()
| Method Detail |
|---|
public Datastream copy()
copy in class Datastream
public InputStream getContentStream(Context context)
throws StreamIOException
The DSLocation of this datastream must be non-null before invoking this method.
If successful, the DSMIME type is automatically set based on the web server's response header. If the web server doesn't send a valid Content-type: header, as a last resort, the content-type is guessed by using a map of common extensions to mime-types.
If the content-length header is present in the response, DSSize will be set accordingly.
getContentStream in class DatastreamStreamIOExceptionDatastream.getContentStream()public long getContentLength(MIMETypedStream stream)
stream - the MIMETypedStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||