Package org.apache.jackrabbit.core.data
Class FileDataRecord
java.lang.Object
org.apache.jackrabbit.core.data.AbstractDataRecord
org.apache.jackrabbit.core.data.FileDataRecord
- All Implemented Interfaces:
DataRecord
Data record that is based on a normal file.
-
Constructor Summary
ConstructorsConstructorDescriptionFileDataRecord(AbstractDataStore store, DataIdentifier identifier, File file) Creates a data record based on the given identifier and file. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the last modified of the record.longReturns the length of the binary stream in this record.Returns the the binary stream in this record.Methods inherited from class org.apache.jackrabbit.core.data.AbstractDataRecord
equals, getIdentifier, getReference, hashCode, toString
-
Constructor Details
-
FileDataRecord
Creates a data record based on the given identifier and file.- Parameters:
identifier- data identifierfile- file that contains the binary stream
-
-
Method Details
-
getLength
public long getLength()Returns the length of the binary stream in this record.- Returns:
- length of the binary stream
-
getStream
Returns the the binary stream in this record.- Returns:
- binary stream
- Throws:
DataStoreException- if the record could not be accessed
-
getLastModified
public long getLastModified()Returns the last modified of the record.- Returns:
- last modified time of the binary stream
-