Package org.apache.jackrabbit.core.data
Interface DataRecord
-
- All Known Implementing Classes:
AbstractDataRecord,CachingDataRecord,DbDataRecord,FileDataRecord
public interface DataRecordImmutable data record that consists of a binary stream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataIdentifiergetIdentifier()Returns the identifier of this record.longgetLastModified()Returns the last modified of the record.longgetLength()Returns the length of the binary stream in this record.StringgetReference()Returns a secure reference to this binary, ornullif no such reference is available.InputStreamgetStream()Returns the the binary stream in this record.
-
-
-
Method Detail
-
getIdentifier
DataIdentifier getIdentifier()
Returns the identifier of this record.- Returns:
- data identifier
-
getReference
String getReference()
Returns a secure reference to this binary, ornullif no such reference is available.- Returns:
- binary reference, or
null
-
getLength
long getLength() throws DataStoreExceptionReturns the length of the binary stream in this record.- Returns:
- length of the binary stream
- Throws:
DataStoreException- if the record could not be accessed
-
getStream
InputStream getStream() throws DataStoreException
Returns the the binary stream in this record.- Returns:
- binary stream
- Throws:
DataStoreException- if the record could not be accessed
-
getLastModified
long getLastModified()
Returns the last modified of the record.- Returns:
- last modified time of the binary stream
-
-