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
public class FileDataRecord
- extends AbstractDataRecord
Data record that is based on a normal file.
Method Summary |
long |
getLength()
Returns the length of the binary stream in this record. |
InputStream |
getStream()
Returns the the binary stream in this record. |
FileDataRecord
protected FileDataRecord(DataIdentifier identifier,
File file)
- Creates a data record based on the given identifier and file.
- Parameters:
identifier
- data identifierfile
- file that contains the binary stream
getLength
public long getLength()
- Returns the length of the binary stream in this record.
- Returns:
- length of the binary stream
getStream
public InputStream getStream()
throws DataStoreException
- Returns the the binary stream in this record.
- Returns:
- binary stream
- Throws:
DataStoreException
- if the record could not be accessed
Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.