public abstract class AbstractFileDataElement extends AbstractDataElement implements FileDataElement
| Constructor and Description |
|---|
AbstractFileDataElement() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize()
Returns the number of bytes of data in this data element.
|
java.io.InputStream |
read()
Provides access to the data as an InputStream.
|
long |
write(java.io.InputStream data,
boolean append)
Writes new data into the data element.
|
delete, deleteAttributes, getAttribute, getAttributes, getType, listAttributes, read, setAttributes, setType, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFiledelete, deleteAttribute, deleteAttributes, getAttribute, getAttributes, getDigitalObject, getName, getType, listAttributes, read, setAttribute, setAttributes, setType, writepublic java.io.InputStream read()
throws RepositoryException
DataElementread in interface DataElementRepositoryExceptionpublic long write(java.io.InputStream data,
boolean append)
throws java.io.IOException,
RepositoryException
DataElementwrite in interface DataElementdata - an InputStream streaming the new dataappend - whether to append the new data to the existing datajava.io.IOExceptionRepositoryExceptionpublic long getSize()
throws RepositoryException
DataElementgetSize in interface DataElementRepositoryException