public class DbDataRecord extends AbstractDataRecord
| Modifier and Type | Field and Description |
|---|---|
protected long |
lastModified |
protected long |
length |
protected DbDataStore |
store |
| Constructor and Description |
|---|
DbDataRecord(DbDataStore store,
DataIdentifier identifier,
long length,
long lastModified)
Creates a data record based on the given identifier and length.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
equals, getIdentifier, getReference, hashCode, toStringprotected final DbDataStore store
protected final long length
protected long lastModified
public DbDataRecord(DbDataStore store, DataIdentifier identifier, long length, long lastModified)
identifier - data identifierlength - the lengthlastModified - public long getLength()
throws DataStoreException
DataStoreException - if the record could not be accessedpublic InputStream getStream() throws DataStoreException
DataStoreException - if the record could not be accessedpublic long getLastModified()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.