public class FileDataRecord extends AbstractDataRecord
Constructor and Description |
---|
FileDataRecord(AbstractDataStore store,
DataIdentifier identifier,
java.io.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.
|
java.io.InputStream |
getStream()
Returns the the binary stream in this record.
|
equals, getIdentifier, getReference, hashCode, toString
public FileDataRecord(AbstractDataStore store, DataIdentifier identifier, java.io.File file)
identifier
- data identifierfile
- file that contains the binary streampublic long getLength()
public java.io.InputStream getStream() throws DataStoreException
DataStoreException
- if the record could not be accessedpublic long getLastModified()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"