|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.data.AbstractDataRecord org.apache.jackrabbit.core.data.FileDataRecord
public class FileDataRecord
Data record that is based on a normal file.
Constructor Summary | |
---|---|
FileDataRecord(DataIdentifier identifier,
File file)
Creates a data record based on the given identifier and file. |
Method Summary | |
---|---|
long |
getLastModified()
Returns the last modified of the record. |
long |
getLength()
Returns the length of the binary stream in this record. |
InputStream |
getStream()
Returns the the binary stream in this record. |
Methods inherited from class org.apache.jackrabbit.core.data.AbstractDataRecord |
---|
equals, getIdentifier, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileDataRecord(DataIdentifier identifier, File file)
identifier
- data identifierfile
- file that contains the binary streamMethod Detail |
---|
public long getLength()
public InputStream getStream() throws DataStoreException
DataStoreException
- if the record could not be accessedpublic long getLastModified()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |