org.fcrepo.client
Class BasisDataStream
java.lang.Object
org.fcrepo.client.DataStream
org.fcrepo.client.BasisDataStream
public class BasisDataStream
- extends DataStream
- Author:
- Chris Wilper
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasisDataStream
public BasisDataStream(File tempDir,
String id)
getType
public final int getType()
- Description copied from class:
DataStream
- Returns INLINE or BASIS.
- Specified by:
getType in class DataStream
addDescriptiveStream
public void addDescriptiveStream(InlineDataStream inlineStream)
removeDescriptiveStream
public void removeDescriptiveStream(InlineDataStream inlineStream)
descriptiveStreams
public Iterator descriptiveStreams()
isInternallyStored
public boolean isInternallyStored()
setLocation
public void setLocation(String location)
getLocation
public String getLocation()
setData
public void setData(InputStream in)
throws IOException
- Description copied from class:
DataStream
- Reads the bytes from the given
InputStream as the data for
this digital object. When finished, the InputStream is
closed.
- Overrides:
setData in class DataStream
- Throws:
IOException
Copyright © 2012 DuraSpace. All Rights Reserved.