org.apache.jackrabbit.core.data
Interface DataRecord

All Known Implementing Classes:
AbstractDataRecord, DbDataRecord, FileDataRecord

public interface DataRecord

Immutable data record that consists of a binary stream.


Method Summary
 DataIdentifier getIdentifier()
          Returns the identifier of this record.
 long getLength()
          Returns the length of the binary stream in this record.
 InputStream getStream()
          Returns the the binary stream in this record.
 

Method Detail

getIdentifier

DataIdentifier getIdentifier()
Returns the identifier of this record.

Returns:
data identifier

getLength

long getLength()
               throws DataStoreException
Returns 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


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.