public class FileDataRecord extends AbstractDataRecord
| Constructor and Description | 
|---|
| FileDataRecord(AbstractDataStore store,
              DataIdentifier identifier,
              File file)Creates a data record based on the given identifier and file. | 
| 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, toStringpublic FileDataRecord(AbstractDataStore store, DataIdentifier identifier, File file)
identifier - data identifierfile - file that contains the binary streampublic long getLength()
public InputStream getStream() throws DataStoreException
DataStoreException - if the record could not be accessedpublic long getLastModified()
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.